Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convert2Local/afterLambda.java
T
Bas Leijdekkers 3d338f488a IDEA-206647 [java]: update inspection description and quick-fix naming
GitOrigin-RevId: 38528faccae23823004b3b9be3d5869c7d535c71
2026-02-24 18:48:20 +00:00

15 lines
304 B
Java

// "Convert to local variables" "true-preview"
import java.util.*;
class Foo {
void test2() {
List<String> x1 = new ArrayList<>();
System.out.println(x1);
Runnable r = () -> {
List<String> x = new ArrayList<>(); // could be local
System.out.println(x);
};
}
}