From eb2415f68e00304e5ff440cc8ecfcf7f8aac5019 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 22 Apr 2011 07:47:49 +0000 Subject: [PATCH] Make FindBugs happier. 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5