diff options
-rw-r--r-- | findbugs-exclude.xml | 47 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java | 3 |
2 files changed, 49 insertions, 1 deletions
diff --git a/findbugs-exclude.xml b/findbugs-exclude.xml index 116d45951..318fb06cc 100644 --- a/findbugs-exclude.xml +++ b/findbugs-exclude.xml @@ -5019,4 +5019,51 @@ <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/> </Match> <!-- /Automatically generated list of exclusions --> + <!-- Automatically generated list of exclusions on 18 February 2011 --> + <Match> + <Class name="org.apache.fop.afp.goca.GraphicsSetProcessColor"/> + <Method name="writeToStream"/> + <Bug pattern="OS_OPEN_STREAM"/> + </Match> + <Match> + <Class name="org.apache.fop.pdf.PDFFactory"/> + <Method name="makeSeparationColorSpace"/> + <Bug pattern="DM_FP_NUMBER_CTOR"/> + </Match> + <Match> + <Class name="org.apache.fop.pdf.PDFFactory"/> + <Method name="toColorVector"/> + <Bug pattern="DM_FP_NUMBER_CTOR"/> + </Match> + <Match> + <Class name="org.apache.fop.fo.expr.PropertyTokenizer"/> + <Field name="recognizeOperator"/> + <Bug pattern="URF_UNREAD_FIELD"/> + </Match> + <Match> + <Class name="org.apache.fop.layoutmgr.BlockLayoutManager"/> + <Method name="getNextChildElements"/> + <Bug pattern="BC_UNCONFIRMED_CAST"/> + </Match> + <Match> + <Class name="org.apache.fop.util.ColorWithFallback"/> + <!-- Listing the method 'equals' does not work --> + <Bug pattern="EQ_DOESNT_OVERRIDE_EQUALS"/> + </Match> + <Match> + <Class name="org.apache.fop.util.ColorWithFallback"/> + <Method name="getAlternativeColors"/> + <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/> + </Match> + <Match> + <Class name="org.apache.fop.fo.expr.NamedColorFunction"/> + <Method name="eval"/> + <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/> + </Match> + <Match> + <Class name="org.apache.fop.util.ColorUtil"/> + <Method name="parseAsFopRgbNamedColor"/> + <Bug pattern="REC_CATCH_EXCEPTION"/> + </Match> + <!-- /Automatically generated list of exclusions on 18 February 2011 --> </FindBugsFilter>
\ No newline at end of file diff --git a/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java b/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java index 5258d75fb..d47142fb6 100644 --- a/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java +++ b/src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java @@ -60,7 +60,8 @@ public class PDFImageHandlerSVG implements ImageHandler { private static Log log = LogFactory.getLog(PDFImageHandlerSVG.class); /** {@inheritDoc} */ - public void handleImage(RenderingContext context, Image image, Rectangle pos) + public void handleImage(RenderingContext context, // CSOK: MethodLength + Image image, Rectangle pos) throws IOException { PDFRenderingContext pdfContext = (PDFRenderingContext)context; PDFContentGenerator generator = pdfContext.getGenerator(); |