Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/optionalToIf/afterEmpty.java
T
2019-08-07 17:02:43 +03:00

11 lines
274 B
Java

// "Fix all 'Optional can be replaced with sequence of if statements' problems in file" "true"
import java.util.*;
class Test {
void statementWithGetGeneratesThrowStatement() {
Object empty = null;
throw new NoSuchElementException("No value present");
}
}