summaryrefslogtreecommitdiffstats
path: root/src/test/test3/NestedClass.java
blob: e1459b26d8c5998f5950af2867eff4278ce79937 (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
package test3;

public class NestedClass {
    public class Inner {
        int i;
    }

    public static class StaticNested {
        int k;
    }

    public Object foo() {
        return new Object() {
            public String toString() { return "OK"; }
        };
    }

    public Object bar() {
        class Local {
            @SuppressWarnings("unused")
            int j;
        }
        return new Local();
    }
}