aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test3/NestedClass.java
blob: 75b4efe272a6a034e0554a6d5323f5bd4c079805 (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
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 {
            int j;
        }
        return new Local();
    }
}