diff --git a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml
index 36f80055c6..d25c0bf0a9 100644
--- a/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml
+++ b/pmd-java/src/test/resources/net/sourceforge/pmd/lang/java/rule/codestyle/xml/ShortVariable.xml
@@ -3,10 +3,9 @@
xmlns="http://pmd.sourceforge.net/rule-tests"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
+
-
+ param
1
+
-
+ none
0
+
-
+ local
1
+
-
+ for
0
+
-
+ field
1
+
-
+ catch(Exception e) is OK
0
+
ShortVariable false positive with for-each loops
0
@@ -93,6 +88,7 @@ public class Foo {
}
]]>
+
ShortVariable within for-each loops
1
@@ -106,6 +102,7 @@ public class Foo {
}
]]>
+
#1361 ShortVariable configuration - 7 characters
7
@@ -120,6 +117,7 @@ public class ShortVariable {
}
]]>
+
#1361 ShortVariable configuration - 1 characters
1