blob: e41879cd2f62a4714238afcf674cf1a53d3b8844 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Scratch {
private String s = null;
void foo() {
s = "1";
<warning descr="silly null check">s = "2";</warning>
if (s == null) {
throw new IllegalStateException("drunk");
}
}
}
|