diff options
Diffstat (limited to 'src/test/test3/NestedClass.java')
-rw-r--r-- | src/test/test3/NestedClass.java | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/test/test3/NestedClass.java b/src/test/test3/NestedClass.java new file mode 100644 index 00000000..75b4efe2 --- /dev/null +++ b/src/test/test3/NestedClass.java @@ -0,0 +1,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(); + } +} |