Improved test cases for AssignmentToNonFinalStatic by including the expected line numbers for violations in the test cases.

This commit is contained in:
Maikel Steneker
2019-04-17 16:00:38 +02:00
parent d4ca21bfd3
commit fd13a4bf21

View File

@ -8,6 +8,7 @@
clear rule violation
]]></description>
<expected-problems>1</expected-problems>
<expected-linenumbers>4</expected-linenumbers>
<code><![CDATA[
public class Foo {
static int x;
@ -36,6 +37,7 @@ public class Foo {
rule violated twice
]]></description>
<expected-problems>2</expected-problems>
<expected-linenumbers>4,5</expected-linenumbers>
<code><![CDATA[
public class Foo {
static int x;