IG: fix tests

This commit is contained in:
Bas Leijdekkers
2017-08-31 17:09:20 +02:00
parent 41c476d04f
commit 6ff8bdd077
2 changed files with 4 additions and 4 deletions
@@ -16,7 +16,7 @@ public class UnqualifiedFieldAccess {
void foo() {
new Object() {
void foo() {
i = 0;
<warning descr="Instance field access 'i' is not qualified with 'this'">i</warning> = 0;
}
};
}
@@ -26,7 +26,7 @@ public class UnqualifiedFieldAccess {
void a() {
new Object() {
void b() {
System.out.println(i);
System.out.println(<warning descr="Instance field access 'i' is not qualified with 'this'">i</warning>);
}
};
}
@@ -19,7 +19,7 @@ public class UnqualifiedMethodAccess extends JPanel {
<warning descr="Instance method call 'a' is not qualified with 'this'">a</warning>();
new Object() {
void b() {
a();
<warning descr="Instance method call 'a' is not qualified with 'this'">a</warning>();
}
};
}
@@ -31,7 +31,7 @@ public class UnqualifiedMethodAccess extends JPanel {
void bar() {
new Object() {
void foo() {
bar();
<warning descr="Instance method call 'bar' is not qualified with 'this'">bar</warning>();
<warning descr="Instance method call 'foo' is not qualified with 'this'">foo</warning>();
}
};