Suppress AvoidCatchingThrowable PMD rule, issue #872

This commit is contained in:
Michal Kordas 2015-04-23 18:20:28 +02:00
parent 5bbe2659da
commit 8022671a5a
1 changed files with 7 additions and 1 deletions

View File

@ -187,11 +187,17 @@
</rule>
<rule ref="rulesets/java/strictexception.xml">
<exclude name="AvoidCatchingGenericException"/>
<exclude name="AvoidCatchingThrowable"/>
<exclude name="AvoidThrowingNullPointerException"/>
<exclude name="AvoidThrowingRawExceptionTypes"/>
<exclude name="ExceptionAsFlowControl"/>
</rule>
<rule ref="rulesets/java/strictexception.xml/AvoidCatchingThrowable">
<properties>
<!-- log name of problematic file and do not crash completely (bug 694111) -->
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration[@Image='TreeWalker']//MethodDeclarator/@Image='processFiltered'"/>
</properties>
</rule>
<rule ref="rulesets/java/strings.xml"/>
<rule ref="rulesets/java/sunsecure.xml"/>
<rule ref="rulesets/java/typeresolution.xml"/>