Files
openide/java/java-tests/testData/refactoring/inplaceIntroduceVariable/replaceAllIntroduceFieldInLocalClass_after.java
Anna Kozlova 9755036efb [java] introduce local variable: allow skip final modifier in effectively final context
GitOrigin-RevId: 1f370ec15dad0027f8625131c67795e15586edd5
2021-07-16 11:39:44 +00:00

17 lines
242 B
Java

class Main {
int getSomething() {return 0;}
void testSimple() {
class X {
private int smth = getSomething();
void test() {
int x = smth;
}
void test2() {
int y = smth;
}
}
}
}