Files
openide/java/java-tests/testData/refactoring/extractMethodObject4Debugger/LanguageLevelImplicitClasses.java
Mikhail Pyltsin 6ed978ea82 [java-debugger] IDEA-367755 Stream trace debugging gives Internal Error in implicitly declared class
- set language level explicitly

GitOrigin-RevId: 01b844c4f0d812c4505491121429af3cc7df24c5
2025-04-01 16:21:48 +00:00

13 lines
440 B
Java

public static void main(String[] args) throws IOException {
List<String> strings = readNonEmptyLines();
strings.forEach(System.out::println);
}
private static List<String> readNonEmptyLines() throws IOException {
try (BufferedReader reader = new BufferedReader(new FileReader("somePath"))) {
<caret>
return reader.lines().filter(l -> !l.isBlank()).filter(l -> !l.startsWith("a")).filter(l -> l.length() > 3).toList();
}
}