Skip to content

Commit

Permalink
Change default to match Effective Java
Browse files Browse the repository at this point in the history
  • Loading branch information
jsotuyod committed May 20, 2016
1 parent 2ec75e7 commit 007f9b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pmd-java/src/main/resources/rulesets/java/design.xml
Expand Up @@ -1961,7 +1961,7 @@ better placed in classes or enums. See Effective Java, item 19.
</description>
<priority>3</priority>
<properties>
<property name="ignoreIfHasMethods" type="Boolean" description="Whether to ignore constants in interfaces if the interface defines any methods" value="false"/>
<property name="ignoreIfHasMethods" type="Boolean" description="Whether to ignore constants in interfaces if the interface defines any methods" value="true"/>
<property name="xpath">
<value>
<![CDATA[
Expand Down
Expand Up @@ -18,6 +18,7 @@ public interface Foo {
<description><![CDATA[
constants in interface, with methods, ignoreIfHasMethods is false
]]></description>
<rule-property name="ignoreIfHasMethods">false</rule-property>
<expected-problems>1</expected-problems>
<code><![CDATA[
public interface AnotherConstantInterface {
Expand Down

0 comments on commit 007f9b3

Please sign in to comment.