aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2011-05-05 15:55:20 +0000
committerJeremias Maerki <jeremias@apache.org>2011-05-05 15:55:20 +0000
commit7d31441cb493d7ec46b0db79a47a8ca1ff706dee (patch)
tree45c7f38f8f1f744d1757b03c66dfdac1ef2b1777
parent173181b3bdd6f4d6ae1e17f0d8ccc717551aaf89 (diff)
downloadxmlgraphics-fop-7d31441cb493d7ec46b0db79a47a8ca1ff706dee.tar.gz
xmlgraphics-fop-7d31441cb493d7ec46b0db79a47a8ca1ff706dee.zip
More happiness for FindBugs.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1099857 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/java/org/apache/fop/fonts/CIDSubset.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/java/org/apache/fop/fonts/CIDSubset.java b/src/java/org/apache/fop/fonts/CIDSubset.java
index 712d8a73b..372a638d1 100644
--- a/src/java/org/apache/fop/fonts/CIDSubset.java
+++ b/src/java/org/apache/fop/fonts/CIDSubset.java
@@ -65,8 +65,8 @@ public class CIDSubset {
* Adds the first glyph which is reserved for .notdef for all CID subsets.
*/
public void setupFirstGlyph() {
- usedGlyphs.put(new Integer(0), new Integer(0));
- usedGlyphsIndex.put(new Integer(0), new Integer(0));
+ usedGlyphs.put(Integer.valueOf(0), Integer.valueOf(0));
+ usedGlyphsIndex.put(Integer.valueOf(0), Integer.valueOf(0));
usedGlyphsCount++;
}
@@ -77,7 +77,7 @@ public class CIDSubset {
* @return the original index (or -1 if no glyph index is available for the subset index)
*/
public int getGlyphIndexForSubsetIndex(int subsetIndex) {
- Integer glyphIndex = usedGlyphsIndex.get(new Integer(subsetIndex));
+ Integer glyphIndex = usedGlyphsIndex.get(Integer.valueOf(subsetIndex));
if (glyphIndex != null) {
return glyphIndex.intValue();
} else {
@@ -92,7 +92,7 @@ public class CIDSubset {
* @return the Unicode value or "NOT A CHARACTER" (0xFFFF)
*/
public char getUnicodeForSubsetIndex(int subsetIndex) {
- Character mapValue = usedCharsIndex.get(new Integer(subsetIndex));
+ Character mapValue = usedCharsIndex.get(Integer.valueOf(subsetIndex));
if (mapValue != null) {
return mapValue.charValue();
} else {
@@ -111,15 +111,15 @@ public class CIDSubset {
public int mapSubsetChar(int glyphIndex, char unicode) {
// Reencode to a new subset font or get the reencoded value
// IOW, accumulate the accessed characters and build a character map for them
- Integer subsetCharSelector = usedGlyphs.get(new Integer(glyphIndex));
+ Integer subsetCharSelector = usedGlyphs.get(Integer.valueOf(glyphIndex));
if (subsetCharSelector == null) {
int selector = usedGlyphsCount;
- usedGlyphs.put(new Integer(glyphIndex),
- new Integer(selector));
- usedGlyphsIndex.put(new Integer(selector),
- new Integer(glyphIndex));
- usedCharsIndex.put(new Integer(selector),
- new Character(unicode));
+ usedGlyphs.put(Integer.valueOf(glyphIndex),
+ Integer.valueOf(selector));
+ usedGlyphsIndex.put(Integer.valueOf(selector),
+ Integer.valueOf(glyphIndex));
+ usedCharsIndex.put(Integer.valueOf(selector),
+ Character.valueOf(unicode));
usedGlyphsCount++;
return selector;
} else {