Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/replaceFromOfNullable/beforeNullVariable.java

7 lines
133 B
Java

// "Replace with '.empty()'" "true"
class A {
void test() {
String s = null;
java.util.Optional.ofNullable(<caret>s);
}
}