Add more suppressions rules to checkstyle and findbugs.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1436903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2013-01-22 13:26:00 +00:00
parent 858899c92f
commit 2f58e684dc
3 changed files with 16 additions and 3 deletions

View File

@ -6,4 +6,10 @@
<suppress checks="FallThrough" files="Flat3Map.java" />
<suppress checks="MissingSwitchDefault" files="Flat3Map.java" />
<!-- Ignore missing javadoc for Get/Put interfaces, they refer to java.util.Map -->
<suppress checks="JavadocMethod" files="Get.java" />
<suppress checks="JavadocMethod" files="Put.java" />
<!-- Ignore missing javadoc param for unsupported method -->
<suppress checks="JavadocMethod" files="FilterListIterator.java" lines="116,166" />
</suppressions>

View File

@ -19,6 +19,10 @@
<property name="localeLanguage" value="en" />
<property name="severity" value="warning" />
<module name="SuppressionFilter">
<property name="file" value="${checkstyle.suppressions.file}"/>
</module>
<module name="JavadocPackage">
<property name="allowLegacy" value="true" />
</module>

View File

@ -30,10 +30,13 @@
<Bug pattern="NP_BOOLEAN_RETURN_NULL" />
</Match>
<!-- Flat3Map and its inner classes use intentional switch fall-through. The missing
default clause is safe and omitted for better readibility. -->
<!-- Flat3Map and its inner classes use intentional switch fall-through. The missing -->
<!-- default clause is safe and omitted for better readability. -->
<Match>
<Class name="~org.apache.commons.collections.map.Flat3Map.*" />
<Or>
<Class name="~.*\.Flat3Map$" />
<Class name="~.*\.Flat3Map\$\w+Iterator$" />
</Or>
<Or>
<Bug pattern="SF_SWITCH_FALLTHROUGH" />
<Bug pattern="SF_SWITCH_NO_DEFAULT" />