Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/convert2Local/afterLocalClass.java
Tagir Valeev 059257aec5 [java-inspections] ConvertFieldToLocalQuickFix: ModCommand; superclass inlined
GitOrigin-RevId: 62aa30ecb2fa401534fe71fc5960863f19aa068d
2023-07-07 15:58:22 +00:00

12 lines
231 B
Java

// "Convert field to local variable in method 'test'" "true-preview"
class Foo {
void test() {
class Bar {
void test() {
int x = 2; // could be local
System.out.println(x);
}
}
}
}