From 3b991e5413ae395b244e2e008769ba6e6a422ec1 Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Fri, 15 Jun 2012 20:41:44 +0000 Subject: [PATCH] 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 --- findbugs-exclude.xml | 37 +++++++++++++++++++ .../fop/render/pdf/AbstractImageAdapter.java | 4 +- status.xml | 3 ++ 3 files changed, 42 insertions(+), 2 deletions(-) diff --git a/findbugs-exclude.xml b/findbugs-exclude.xml index 46879d1f6..9056ff51d 100644 --- a/findbugs-exclude.xml +++ b/findbugs-exclude.xml @@ -5162,4 +5162,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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; diff --git a/status.xml b/status.xml index f96a9487b..7f684f8b1 100644 --- a/status.xml +++ b/status.xml @@ -63,6 +63,9 @@ documents. Example: the fix of marks layering will be such a case when it's done. --> + + Fix newly introduced findbugs warnings. + Support use of ImageLoaderRawPNG decoder in order to prevent re-encoding of PNG images (and unnecssary output file bloat). -- 2.39.5