diff options
author | Glenn Adams <gadams@apache.org> | 2012-06-15 20:41:44 +0000 |
---|---|---|
committer | Glenn Adams <gadams@apache.org> | 2012-06-15 20:41:44 +0000 |
commit | 3b991e5413ae395b244e2e008769ba6e6a422ec1 (patch) | |
tree | 6b0348bd4196b164f408b63fff6bba81d82e5660 /src | |
parent | 4bba95be2e5bd480bd5adec9e9b1083d5fb9a561 (diff) | |
download | xmlgraphics-fop-3b991e5413ae395b244e2e008769ba6e6a422ec1.tar.gz xmlgraphics-fop-3b991e5413ae395b244e2e008769ba6e6a422ec1.zip |
Buzilla #40676: Fix newly introduced findbugs warnings. Submitted by Luis Bernardo.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1350790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java b/src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java index ce99b9fef..36d58246f 100644 --- a/src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java +++ b/src/java/org/apache/fop/render/pdf/AbstractImageAdapter.java @@ -226,7 +226,7 @@ public abstract class AbstractImageAdapter implements PDFImage { if (hival > MAX_HIVAL) { throw new UnsupportedOperationException("hival must not go beyond " + MAX_HIVAL); } - indexed.add(new Integer(hival)); + indexed.add(Integer.valueOf(hival)); int[] palette = new int[c]; icm.getRGBs(palette); ByteArrayOutputStream baout = new ByteArrayOutputStream(); @@ -263,7 +263,7 @@ public abstract class AbstractImageAdapter implements PDFImage { icm.getBlues(blues); for (int i = 0; i < icm.getMapSize(); i++) { if ((alphas[i] & 0xFF) == 0) { - return new Integer(i); + return Integer.valueOf(i); } } return null; |