summaryrefslogtreecommitdiffstats
path: root/findbugs-exclude.xml
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2015-11-30 09:22:05 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2015-11-30 09:22:05 +0000
commita386b5966a8e3548c8025c5a4976a8a45582867f (patch)
tree4623d4a0898937369572bd1aa59fb8facb7bce39 /findbugs-exclude.xml
parentd6b4be2865cb2f00ddee2d53b01de7a01716310a (diff)
downloadxmlgraphics-fop-a386b5966a8e3548c8025c5a4976a8a45582867f.tar.gz
xmlgraphics-fop-a386b5966a8e3548c8025c5a4976a8a45582867f.zip
Add approved exclusion for two warnings
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1717211 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'findbugs-exclude.xml')
-rw-r--r--findbugs-exclude.xml74
1 files changed, 74 insertions, 0 deletions
diff --git a/findbugs-exclude.xml b/findbugs-exclude.xml
index 2eaa8580b..2b2839c1a 100644
--- a/findbugs-exclude.xml
+++ b/findbugs-exclude.xml
@@ -48,6 +48,14 @@
<!-- START - APPROVED EXCLUSIONS -->
<Match>
+ <Bug pattern="ES_COMPARING_STRINGS_WITH_EQ"/>
+ <!-- OK; check mainly serves to cover case where both strings are null -->
+ <And>
+ <Class name="org.apache.fop.afp.AFPResourceInfo"/>
+ <Method name="equals"/>
+ </And>
+ </Match>
+ <Match>
<Bug pattern="BC_BAD_CAST_TO_CONCRETE_COLLECTION"/>
<!-- TODO - Not sure what to do with those two... Seems messy/hacky -->
<And>
@@ -97,6 +105,72 @@
</Or>
</Match>
<Match>
+ <Bug pattern="DM_DEFAULT_ENCODING"/>
+ <Or>
+ <!-- default encoding used as a fallback/last resort -->
+ <Or>
+ <And>
+ <Method name="getNameBytes"/>
+ <Or>
+ <Class name="org.apache.fop.afp.fonts.CharacterSet"/>
+ <Class name="org.apache.fop.afp.modca.AbstractNamedAFPObject"/>
+ </Or>
+ </And>
+ <And>
+ <Class name="org.apache.fop.pdf.PDFDocument"/>
+ <Method name="encode"/>
+ </And>
+ </Or>
+ <!-- reads from or writes to terminal/console -->
+ <Or>
+ <And>
+ <Class name="org.apache.fop.fonts.autodetect.WindowsFontDirFinder"/>
+ <Method name="getWinDir"/>
+ </And>
+ <And>
+ <Class name="org.apache.fop.hyphenation.HyphenationTree"/>
+ <Method name="main"/>
+ </And>
+ <And>
+ <Class name="org.apache.fop.render.rtf.rtflib.RtfFile"/>
+ <Method name="main"/>
+ </And>
+ </Or>
+ <!-- private method: byte-to-string and string-to-byte always on the same platform -->
+ <And>
+ <Class name="org.apache.fop.render.afp.AFPPainter$AFPBorderPainterAdapter"/>
+ <Method name="hash"/>
+ </And>
+ <!-- source encoding out of FOP's control (FontBox) -->
+ <Or>
+ <And>
+ <Class name="org.apache.fop.fonts.cff.CFFDataReader"/>
+ <Method name="getString"/>
+ </And>
+ <And>
+ <Class name="org.apache.fop.fonts.truetype.OTFSubSetFile"/>
+ <Or>
+ <Method name="createCFF"/>
+ <Method name="writeROSEntry"/>
+ <Method name="writeStringIndex"/>
+ </Or>
+ </And>
+ <And>
+ <Class name="org.apache.fop.render.ps.PSFontUtils"/>
+ <Method name="embedType2CFF"/>
+ </And>
+ </Or>
+ </Or>
+ </Match>
+ <Match>
+ <!-- class only used when building? -->
+ <Bug pattern="OS_OPEN_STREAM_EXCEPTION_PATH"/>
+ <And>
+ <Class name="org.apache.fop.hyphenation.SerializeHyphPattern"/>
+ <Method name="serializeFile"/>
+ </And>
+ </Match>
+ <Match>
<Bug pattern="DM_EXIT"/>
<Or>
<And>