blob: d8342c26ffd2a77393f54e5ee036a9db3cffbf89 [file]
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 'NullPointerException'">subs<caret>tring</warning>(1));
}
}
}