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:
Ben Liblit 2017-05-11 18:18:45 +02:00 committed by Manu Sridharan
parent 237b49a425
commit 38c11f0fa6
1 changed files with 1 additions and 0 deletions

View File

@ -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