blob: 00da161a342be46843ff4fb6b4b42eac32dca483 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package test.pkg;
import java.io.File;
import java.util.List;
import android.content.Context;
public class TestFieldGetter {
private int path;
private int foo;
public int getPath() {
return path;
}
public int getFoo() {
return foo;
}
public void test(TestFieldGetter other) {
getPath(); // Should be flagged
other.getPath(); // Ignore
File file = new File("/dummy");
file.getPath(); // Ignore
}
public static void test2(TestFieldGetter other) {
other.getPath(); // Ignore
}
public class Inner extends TestFieldGetter {
public void test() {
getFoo(); // Ignore
}
}
}
|