]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Fixing checkstyle errors and hiding fingbugs errors
authorSimon Pepping <spepping@apache.org>
Fri, 18 Feb 2011 08:18:04 +0000 (08:18 +0000)
committerSimon Pepping <spepping@apache.org>
Fri, 18 Feb 2011 08:18:04 +0000 (08:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1071912 13f79535-47bb-0310-9956-ffa450edef68

findbugs-exclude.xml
src/java/org/apache/fop/render/pdf/PDFImageHandlerSVG.java

index 116d45951f20409e08da3c9528c6f814be7f3c48..318fb06cc1fe9fbef14c85c5e211477e2fc0fa16 100644 (file)
       <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
index 5258d75fbda08a3f02b9d1ae19dc55b76df1c643..d47142fb6686ed2b79729a067c9b5b736c7d2804 100644 (file)
@@ -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();