AvoidDuplicateLiterals.maxDuplicateLiterals: max is the too much value, not the max allowed

This commit is contained in:
Paul Campbell 2018-03-07 18:14:48 +00:00
parent 85f6932b35
commit 2993cdc950

View file

@ -218,7 +218,7 @@ http://pmd.sourceforge.net/ruleset/2.0.0 ">
<rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/> <rule ref="category/java/errorprone.xml/AvoidDecimalLiteralsInBigDecimalConstructor"/>
<rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals"> <rule ref="category/java/errorprone.xml/AvoidDuplicateLiterals">
<properties> <properties>
<property name="maxDuplicateLiterals" value="1"/> <property name="maxDuplicateLiterals" value="2"/>
</properties> </properties>
</rule> </rule>
<rule ref="category/java/errorprone.xml/AvoidEnumAsIdentifier"/> <rule ref="category/java/errorprone.xml/AvoidEnumAsIdentifier"/>