mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 11:50:57 +07:00
15 lines
301 B
Java
15 lines
301 B
Java
// "Create read-only 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;
|
|
}
|
|
}
|
|
} |