Don't warn about intentional indirect access to static methods
This test code is intentionally crafted to use instances to access static methods. Eclipse's recommendation to access those methods directly is, therefore, counterproductive.
This commit is contained in:
parent
237b49a425
commit
38c11f0fa6
|
@ -99,6 +99,7 @@ public class MethodMadness {
|
|||
return 233 + x;
|
||||
}
|
||||
|
||||
@SuppressWarnings("static-access")
|
||||
public void hello() {
|
||||
System.out.println(privateInteger()); // inner function, inner this, 200013
|
||||
System.out.println(MethodMadness.this.privateInteger()); // outer function, outer this, 100007
|
||||
|
|
Loading…
Reference in New Issue