mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 10:20:56 +07:00
19 lines
379 B
Java
19 lines
379 B
Java
// "Create property 'next' in 'InnerClass in MainClass'" "true-preview"
|
|
public class MainClass {
|
|
void foo() {
|
|
int counter = InnerClass.getNext();
|
|
}
|
|
|
|
private class InnerClass {
|
|
|
|
private static int next;
|
|
|
|
public static int getNext() {
|
|
return next;
|
|
}
|
|
|
|
public static void setNext(int next) {
|
|
InnerClass.next = next;
|
|
}
|
|
}
|
|
} |