mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
48 lines
1.0 KiB
Java
48 lines
1.0 KiB
Java
enum EnumPrivateMethodTest {
|
|
FIRST {
|
|
@Override
|
|
public void execute() {
|
|
this.<error descr="'firstMethod()' has private access in 'EnumPrivateMethodTest'">firstMethod</error>();
|
|
}
|
|
};
|
|
|
|
public abstract void execute();
|
|
|
|
private void firstMethod() {}
|
|
}
|
|
|
|
abstract class EnumPrivateMethodTest1 {
|
|
EnumPrivateMethodTest1 FIRST = new EnumPrivateMethodTest1() {
|
|
@Override
|
|
public void execute() {
|
|
this.<error descr="'firstMethod()' has private access in 'EnumPrivateMethodTest1'">firstMethod</error>();
|
|
}
|
|
};
|
|
|
|
public abstract void execute();
|
|
|
|
private void firstMethod() {}
|
|
}
|
|
|
|
abstract class EnumPrivateMethodTest2 {
|
|
EnumPrivateMethodTest2 FIRST = new EnumPrivateMethodTest2() {
|
|
@Override
|
|
public void execute() {
|
|
firstMethod();
|
|
}
|
|
};
|
|
|
|
public abstract void execute();
|
|
|
|
private void firstMethod() {}
|
|
}
|
|
|
|
class Test {
|
|
private class Foo {
|
|
private Foo() {}
|
|
|
|
{
|
|
new Foo(){};
|
|
}
|
|
}
|
|
} |