]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Replaced creation of new Integer with Java autoboxing feature
authorVincent Hennebert <vhennebert@apache.org>
Wed, 1 Dec 2010 12:20:39 +0000 (12:20 +0000)
committerVincent Hennebert <vhennebert@apache.org>
Wed, 1 Dec 2010 12:20:39 +0000 (12:20 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1040977 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fonts/Font.java

index 7d6004fa0022459dcaa1ea7036c1fb16fb636215..1dfe290d86887aff727193f6175485415c8b2d49 100644 (file)
@@ -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<Integer, Integer> kernPair = getKerning().get(new Integer(ch1));
+        Map<Integer, Integer> 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;
             }