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