You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

findbugs-exclude.xml 6.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FindBugsFilter>
  3. <!--
  4. !
  5. ! This file is divided into two parts:
  6. ! 1. APPROVED EXCLUSIONS
  7. ! 2. TEMPORARY (UNAPPROVED) EXCLUSIONS
  8. !
  9. ! Approved exclusions come in two sub-types:
  10. ! 1. general exclusion of a named bug pattern, meaning that all instances that matches the bug
  11. ! pattern identifier are excluded;
  12. ! 2. specific exclusions for a named bug pattern, meaning that all instance exclusions are
  13. ! explicitly enumerated;
  14. !
  15. ! All specific exclusions must be accompanied inline (i.e., in the affected source code) by
  16. ! a commented out annotation of the form:
  17. !
  18. ! // @SuppressFBWarnings("pattern identifier")
  19. !
  20. ! where pattern identifier is one of findbugs' named patterns. At an appropriate point in the
  21. ! future, these commented out annotations will be uncommented and exclusion patterns removed
  22. ! from this file.
  23. !
  24. ! Temporary (unapproved) exclusions are short-term work arounds that should be removed as
  25. ! soon as possible by either (1) fixing (eliminating) cause of warning, or (2) conversion to
  26. ! approved exclusion.
  27. !
  28. ! The organization of pattern matches employs the following levels (from top down):
  29. ! 1. bug pattern
  30. ! 2. or clause matching instances
  31. ! 3. class name, if applies to class/interface
  32. ! 4. and clause matching class/instance and single or or clause of multiple {method,field} members
  33. !
  34. ! for example,
  35. !
  36. ! <Match>
  37. ! <Bug pattern="pattern identifier"/>
  38. ! <Or>
  39. ! <And>
  40. ! <Class name="dotted class name"/>
  41. ! <Member name="unqualified member name"/>
  42. ! </And>
  43. ! </Or>
  44. ! </Match>
  45. !
  46. -->
  47. <!-- START - APPROVED EXCLUSIONS -->
  48. <Match>
  49. <Bug pattern="CN_IDIOM_NO_SUPER_CALL"/>
  50. <Or>
  51. <And>
  52. <Class name="org.apache.fop.render.intermediate.IFGraphicContext"/>
  53. <Method name="clone"/>
  54. </And>
  55. <And>
  56. <Class name="org.apache.fop.svg.text.BidiAttributedCharacterIterator"/>
  57. <Method name="clone"/>
  58. </And>
  59. </Or>
  60. </Match>
  61. <Match>
  62. <Bug pattern="DM_EXIT"/>
  63. <Or>
  64. <And>
  65. <Class name="org.apache.fop.cli.CommandLineOptions"/>
  66. <Or>
  67. <Method name="parseCustomOutputOption"/>
  68. <Method name="parseOptions"/>
  69. </Or>
  70. </And>
  71. <And>
  72. <Class name="org.apache.fop.cli.Main"/>
  73. <Or>
  74. <Method name="startFOP"/>
  75. <Method name="startFOPWithDynamicClasspath"/>
  76. </Or>
  77. </And>
  78. <And>
  79. <Class name="org.apache.fop.tools.fontlist.FontListMain"/>
  80. <Or>
  81. <Method name="parseArguments"/>
  82. </Or>
  83. </And>
  84. </Or>
  85. </Match>
  86. <Match>
  87. <Bug pattern="EQ_ALWAYS_TRUE"/>
  88. <Or>
  89. <And>
  90. <Class name="org.apache.fop.fo.properties.ToBeImplementedProperty"/>
  91. <Method name="equals"/>
  92. </And>
  93. </Or>
  94. </Match>
  95. <Match>
  96. <Bug pattern="MS_EXPOSE_REP"/>
  97. <Or>
  98. <And>
  99. <Class name="org.apache.fop.fo.FOPropertyMapping"/>
  100. <Method name="getGenericMappings"/>
  101. </And>
  102. </Or>
  103. </Match>
  104. <Match>
  105. <Bug pattern="NM_SAME_SIMPLE_NAME_AS_INTERFACE"/>
  106. <Or>
  107. <Class name="org.apache.fop.apps.MimeConstants"/>
  108. <Class name="org.apache.fop.events.EventListener"/>
  109. <Class name="org.apache.fop.render.Graphics2DImagePainter"/>
  110. </Or>
  111. </Match>
  112. <Match>
  113. <Bug pattern="NM_SAME_SIMPLE_NAME_AS_SUPERCLASS"/>
  114. <Or>
  115. <Class name="org.apache.fop.render.ps.PSFontUtils"/>
  116. <Class name="org.apache.fop.render.ps.PSImageUtils"/>
  117. <Class name="org.apache.fop.svg.GraphicsConfiguration"/>
  118. <Class name="org.apache.fop.svg.PDFTextUtil"/>
  119. <Class name="org.apache.fop.util.QName"/>
  120. </Or>
  121. </Match>
  122. <Match>
  123. <Bug pattern="SE_INNER_CLASS"/>
  124. <Or>
  125. <Class name="org.apache.fop.afp.AFPPaintingState$AFPData"/>
  126. <Class name="org.apache.fop.area.inline.AbstractTextArea$TextAdjustingInfo"/>
  127. <Class name="org.apache.fop.area.inline.InlineArea$InlineAdjustingInfo"/>
  128. <Class name="org.apache.fop.area.LineArea$LineAdjustingInfo"/>
  129. <Class name="org.apache.fop.pdf.PDFPaintingState$PDFData"/>
  130. <Class name="org.apache.fop.util.AbstractPaintingState$StateStack"/>
  131. </Or>
  132. </Match>
  133. <Match>
  134. <Bug pattern="SF_SWITCH_FALLTHROUGH"/>
  135. <Or>
  136. <And>
  137. <Class name="org.apache.fop.render.awt.viewer.PreviewPanel$Reloader"/>
  138. <Method name="run"/>
  139. </And>
  140. </Or>
  141. </Match>
  142. <!-- END - APPROVED EXCLUSIONS -->
  143. <!-- START - TEMPORARY (UNAPPROVED) EXCLUSIONS -->
  144. <Match>
  145. <!-- 131 warnings -->
  146. <Bug pattern="BC_UNCONFIRMED_CAST"/>
  147. </Match>
  148. <Match>
  149. <!-- 15 warnings -->
  150. <Bug pattern="DB_DUPLICATE_SWITCH_CLAUSES"/>
  151. </Match>
  152. <Match>
  153. <!-- 27 warnings -->
  154. <Bug pattern="DLS_DEAD_LOCAL_STORE"/>
  155. </Match>
  156. <Match>
  157. <!-- 29 warnings -->
  158. <Bug pattern="DM_CONVERT_CASE"/>
  159. </Match>
  160. <Match>
  161. <!-- 20 warnings -->
  162. <Bug pattern="DM_FP_NUMBER_CTOR"/>
  163. </Match>
  164. <Match>
  165. <!-- 88 warnings -->
  166. <Bug pattern="DM_NUMBER_CTOR"/>
  167. </Match>
  168. <Match>
  169. <!-- 84 warnings -->
  170. <Bug pattern="EI_EXPOSE_REP"/>
  171. </Match>
  172. <Match>
  173. <!-- 55 warnings -->
  174. <Bug pattern="EI_EXPOSE_REP2"/>
  175. </Match>
  176. <Match>
  177. <!-- 12 warnings -->
  178. <Bug pattern="FE_FLOATING_POINT_EQUALITY"/>
  179. </Match>
  180. <Match>
  181. <!-- 12 warnings -->
  182. <Bug pattern="MS_OOI_PKGPROTECT"/>
  183. </Match>
  184. <Match>
  185. <!-- 15 warnings -->
  186. <Bug pattern="MS_PKGPROTECT"/>
  187. </Match>
  188. <Match>
  189. <!-- 11 warnings -->
  190. <Bug pattern="NM_CONFUSING"/>
  191. </Match>
  192. <Match>
  193. <!-- 46 warnings -->
  194. <Bug pattern="PZLA_PREFER_ZERO_LENGTH_ARRAYS"/>
  195. </Match>
  196. <Match>
  197. <!-- 10 warnings -->
  198. <Bug pattern="RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE"/>
  199. </Match>
  200. <Match>
  201. <!-- 23 warnings -->
  202. <Bug pattern="REC_CATCH_EXCEPTION"/>
  203. </Match>
  204. <Match>
  205. <!-- 11 warnings -->
  206. <Bug pattern="RV_RETURN_VALUE_IGNORED_BAD_PRACTICE"/>
  207. </Match>
  208. <Match>
  209. <!-- 33 warnings -->
  210. <Bug pattern="SE_BAD_FIELD"/>
  211. </Match>
  212. <Match>
  213. <!-- 21 warnings -->
  214. <Bug pattern="SIC_INNER_SHOULD_BE_STATIC"/>
  215. </Match>
  216. <Match>
  217. <!-- 20 warnings -->
  218. <Bug pattern="SIC_INNER_SHOULD_BE_STATIC_ANON"/>
  219. </Match>
  220. <Match>
  221. <!-- 12 warnings -->
  222. <Bug pattern="URF_UNREAD_FIELD"/>
  223. </Match>
  224. <Match>
  225. <!-- 58 warnings -->
  226. <Bug pattern="UWF_FIELD_NOT_INITIALIZED_IN_CONSTRUCTOR"/>
  227. </Match>
  228. <!-- END - TEMPORARY (UNAPPROVED) EXCLUSIONS -->
  229. </FindBugsFilter>