From: Vincent Hennebert Date: Wed, 1 Dec 2010 12:20:39 +0000 (+0000) Subject: Replaced creation of new Integer with Java autoboxing feature X-Git-Tag: fop-1_1rc1old~397 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5afd2a7a4e0dc5dc04ecd3958c6eb55ebfbcf2e2;p=xmlgraphics-fop.git Replaced creation of new Integer with Java autoboxing feature git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1040977 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/Font.java b/src/java/org/apache/fop/fonts/Font.java index 7d6004fa0..1dfe290d8 100644 --- a/src/java/org/apache/fop/fonts/Font.java +++ b/src/java/org/apache/fop/fonts/Font.java @@ -178,9 +178,9 @@ public class Font { * @return the distance to adjust for kerning, 0 if there's no kerning */ public int getKernValue(char ch1, char ch2) { - Map kernPair = getKerning().get(new Integer(ch1)); + Map kernPair = getKerning().get(ch1); if (kernPair != null) { - Integer width = kernPair.get(new Integer(ch2)); + Integer width = kernPair.get(ch2); if (width != null) { return width.intValue() * getFontSize() / 1000; }