diff options
Diffstat (limited to 'test/transform/resource/before/ValAnonymousSubclassWithGenerics.java')
-rw-r--r-- | test/transform/resource/before/ValAnonymousSubclassWithGenerics.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java b/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java new file mode 100644 index 00000000..49fc86e0 --- /dev/null +++ b/test/transform/resource/before/ValAnonymousSubclassWithGenerics.java @@ -0,0 +1,23 @@ +// ignore +import java.util.*; +import lombok.val; + +public class ValAnonymousSubclassWithGenerics { + Object object = new Object(){ + void foo() { + val j = 1; + } + }; + + void bar() { + val k = super.hashCode(); + int x = k; + } + + java.util.List<String> names = new java.util.ArrayList<String>() { + public String get(int i) { + val result = super.get(i); + return result; + } + }; +} |