infer run --starvation -- javac -cp /path/to/android-support-v4.jar Test.java
Output:
Capturing in javac mode...
Found 1 source file to analyze in /path/to/infer-out
1/1 [################################################################################] 100% 24.568ms
No issues found
Code Example:
Object lock;
Object o = new Object() {
@UiThread
void Bad() {
synchronized (lock) {
}
}
};
Infer version: v1.1.0 OS version: Ubuntu 20.04
Command:
Output:
Code Example: