Skip to content
Permalink
Browse files
Update PMD rulesets to work without warnings with newer PMD versions
  • Loading branch information
dkulp committed Feb 23, 2017
1 parent d783644 commit 94a777d42acc49c9dd0eceea407b5c55a9d34023
Showing 2 changed files with 19 additions and 19 deletions.
@@ -43,15 +43,15 @@
<rule ref="rulesets/java/basic.xml/BooleanInstantiation"/>
<rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/>
<rule ref="rulesets/java/basic.xml/DoubleCheckedLocking"/>
<!--<rule ref="rulesets/java/basic.xml/EmptyCatchBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyFinallyBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyIfStmt"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyCatchBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyFinallyBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyIfStmt"/>-->
<rule ref="rulesets/java/empty.xml/EmptyStatementNotInLoop"/>
<!--<rule ref="rulesets/java/basic.xml/EmptyStaticInitializer"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptySwitchStatements"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptySynchronizedBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyTryBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyWhileStmt"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyStaticInitializer"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptySwitchStatements"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptySynchronizedBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyTryBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyWhileStmt"/>-->
<rule ref="rulesets/java/basic.xml/ForLoopShouldBeWhileLoop"/>
<rule ref="rulesets/java/basic.xml/JumbledIncrementer"/>
<!--<rule ref="rulesets/java/basic.xml/OverrideBothEqualsAndHashcode"/>-->
@@ -60,7 +60,7 @@
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryConversionTemporary"/>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryFinalModifier"/>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryReturn"/>
<!--<rule ref="rulesets/java/basic.xml/UselessOverridingMethod"/>-->
<!--<rule ref="rulesets/java/unnecessary.xml/UselessOverridingMethod"/>-->

<!--<rule ref="rulesets/java/braces.xml/ForLoopsMustUseBraces"/>-->
<!--<rule ref="rulesets/java/braces.xml/IfElseStmtsMustUseBraces"/>-->
@@ -126,7 +126,7 @@
<!--rule ref="rulesets/java/design.xml/UnnecessaryLocalBeforeReturn"/-->
<!--<rule ref="rulesets/java/design.xml/UseLocaleWithCaseConversions"/>-->
<!--<rule ref="rulesets/java/design.xml/UseNotifyAllInsteadOfNotify"/>-->
<!--<rule ref="rulesets/java/design.xml/UseSingleton"/>-->
<!--<rule ref="rulesets/java/design.xml/UseUtilityClass"/>-->

<!--<rule ref="rulesets/java/finalizers.xml/EmptyFinalizer"/>-->
<!--<rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize"/>-->
@@ -34,15 +34,15 @@
<rule ref="rulesets/java/basic.xml/BooleanInstantiation"/>
<rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/>
<rule ref="rulesets/java/basic.xml/DoubleCheckedLocking"/>
<!--<rule ref="rulesets/java/basic.xml/EmptyCatchBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyFinallyBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyIfStmt"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyCatchBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyFinallyBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyIfStmt"/>-->
<rule ref="rulesets/java/empty.xml/EmptyStatementNotInLoop"/>
<!--<rule ref="rulesets/java/basic.xml/EmptyStaticInitializer"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptySwitchStatements"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptySynchronizedBlock"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyStaticInitializer"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptySwitchStatements"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptySynchronizedBlock"/>-->
<!--<rule ref="rulesets/java/java/basic.xml/EmptyTryBlock"/>-->
<!--<rule ref="rulesets/java/basic.xml/EmptyWhileStmt"/>-->
<!--<rule ref="rulesets/java/empty.xml/EmptyWhileStmt"/>-->
<rule ref="rulesets/java/basic.xml/ForLoopShouldBeWhileLoop"/>
<rule ref="rulesets/java/basic.xml/JumbledIncrementer"/>
<!--<rule ref="rulesets/java/basic.xml/OverrideBothEqualsAndHashcode"/>-->
@@ -51,7 +51,7 @@
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryConversionTemporary"/>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryFinalModifier"/>
<rule ref="rulesets/java/unnecessary.xml/UnnecessaryReturn"/>
<!--<rule ref="rulesets/java/basic.xml/UselessOverridingMethod"/>-->
<!--<rule ref="rulesets/java/unnecessary.xml/UselessOverridingMethod"/>-->

<!--<rule ref="rulesets/java/braces.xml/ForLoopsMustUseBraces"/>-->
<!--<rule ref="rulesets/java/braces.xml/IfElseStmtsMustUseBraces"/>-->
@@ -117,7 +117,7 @@
<rule ref="rulesets/java/design.xml/UnnecessaryLocalBeforeReturn"/>
<!--<rule ref="rulesets/java/design.xml/UseLocaleWithCaseConversions"/>-->
<!--<rule ref="rulesets/java/design.xml/UseNotifyAllInsteadOfNotify"/>-->
<!--<rule ref="rulesets/java/design.xml/UseSingleton"/>-->
<!--<rule ref="rulesets/java/design.xml/UseUtilityClass"/>-->

<!--<rule ref="rulesets/java/finalizers.xml/EmptyFinalizer"/>-->
<!--<rule ref="rulesets/java/finalizers.xml/FinalizeOnlyCallsSuperFinalize"/>-->

0 comments on commit 94a777d

Please sign in to comment.