From: Jeremias Maerki Date: Fri, 22 Apr 2011 07:47:49 +0000 (+0000) Subject: Make FindBugs happier. X-Git-Tag: fop-1_1rc1old~225 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb2415f68e00304e5ff440cc8ecfcf7f8aac5019;p=xmlgraphics-fop.git Make FindBugs happier. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1095883 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/fonts/FontInfo.java b/src/java/org/apache/fop/fonts/FontInfo.java index c0bf8db8d..5c9c63a98 100644 --- a/src/java/org/apache/fop/fonts/FontInfo.java +++ b/src/java/org/apache/fop/fonts/FontInfo.java @@ -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(); 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);