Change default to match Effective Java

This commit is contained in:
Juan Martín Sotuyo Dodero
2016-05-20 17:12:26 -03:00
parent 2ec75e7050
commit 007f9b3921
2 changed files with 2 additions and 1 deletions

View File

@ -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[

View File

@ -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 {