mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-12 19:31:53 +07:00
16 lines
299 B
Java
16 lines
299 B
Java
// "Convert to local variables" "true-preview"
|
|
|
|
import java.util.*;
|
|
|
|
class Foo {
|
|
private List<String> <caret>x;
|
|
|
|
void test2() {
|
|
x = new ArrayList<>();
|
|
System.out.println(x);
|
|
Runnable r = () -> {
|
|
x = new ArrayList<>(); // could be local
|
|
System.out.println(x);
|
|
};
|
|
}
|
|
} |