diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/NonStaticInitializer.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/NonStaticInitializer.xml index 235904d78b..d66001be47 100644 --- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/NonStaticInitializer.xml +++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/errorprone/xml/NonStaticInitializer.xml @@ -1,8 +1,7 @@ - + bad 1 @@ -23,7 +22,6 @@ public class Foo { ]]> - Allowed in anonymous classes 0 @@ -72,6 +70,30 @@ public enum Foo { { setCycleDuration(Duration.millis(1200)); } +} + ]]> + + + + Flag in nested local class + 1 + 7 +