mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-24 04:07:09 +07:00
10 lines
298 B
Java
10 lines
298 B
Java
import org.jetbrains.annotations.Nullable;
|
|
class Test {
|
|
@Nullable volatile String x;
|
|
|
|
public void foo() {
|
|
if (x != null) {
|
|
System.out.println(<warning descr="Method invocation 'x.substring(1)' may produce 'java.lang.NullPointerException'">x.sub<caret>string(1)</warning>);
|
|
}
|
|
}
|
|
} |