summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting7/IDEA78916.java
blob: 214a3aec4bd617a90e4c0f8b9e5fb7e3bb621299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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() {}
}