mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-21 21:50:54 +07:00
Fixes IDEA-218207 Move refactoring doesn't work for local classes Also: Convert anonymous to inner -> do not create fields used in other field initializers only Also: Convert anonymous to inner -> capture implicitly referred type parameters (mentioned in types of captured variables) GitOrigin-RevId: 5d326e0b6fdff4de850ce48582cc3ca0fe003b43
20 lines
411 B
Java
20 lines
411 B
Java
import java.util.function.IntFunction;
|
|
|
|
public class LocalClass {
|
|
void test(int x, int y) {
|
|
|
|
new InnerClass(x, y);
|
|
new InnerClass(new int[]{1, 2, 3}, x, y);
|
|
}
|
|
|
|
private static class InnerClass {
|
|
InnerClass(int x, int y) {
|
|
System.out.println(x);
|
|
}
|
|
|
|
InnerClass(int[] data, int x, int y) {
|
|
System.out.println(y);
|
|
}
|
|
}
|
|
}
|