]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Make FindBugs happier.
authorJeremias Maerki <jeremias@apache.org>
Fri, 22 Apr 2011 07:47:49 +0000 (07:47 +0000)
committerJeremias Maerki <jeremias@apache.org>
Fri, 22 Apr 2011 07:47:49 +0000 (07:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095883 13f79535-47bb-0310-9956-ffa450edef68

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

index c0bf8db8df8dd17eb051e835349a22af1a3134e4..5c9c63a98e7337fac55a5c988fe27f017af800c7 100644 (file)
@@ -152,7 +152,7 @@ public class FontInfo {
             }
         }
         this.triplets.put(triplet, internalFontKey);
-        this.tripletPriorities.put(triplet, new Integer(newPriority));
+        this.tripletPriorities.put(triplet, Integer.valueOf(newPriority));
     }
 
     /**
@@ -316,7 +316,7 @@ public class FontInfo {
             sizes = new HashMap<Integer, Font>();
             getFontInstanceCache().put(triplet, sizes);
         }
-        Integer size = new Integer(fontSize);
+        Integer size = Integer.valueOf(fontSize);
         Font font = sizes.get(size);
         if (font == null) {
             String fontKey = getInternalFontKey(triplet);