Change default to match Effective Java
This commit is contained in:
@ -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[
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user