aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2015-02-01 06:52:52 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2015-02-01 06:53:10 +0100
commite5860edabe31f3b6ceabd91f9cbcadf3d4d0315a (patch)
treeb1d52306c826f384aed0ff9228029feb3f0ff88d /test/transform/resource/after-delombok
parenta6170f5298daf42931877a2d9c98e6f2ad1985be (diff)
downloadlombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.tar.gz
lombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.tar.bz2
lombok-e5860edabe31f3b6ceabd91f9cbcadf3d4d0315a.zip
Fixed issues with val in inner classes, and re-enabled a test that caught it that we ignored earlier.
Diffstat (limited to 'test/transform/resource/after-delombok')
-rw-r--r--test/transform/resource/after-delombok/ValAnonymousSubclassWithGenerics.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValAnonymousSubclassWithGenerics.java b/test/transform/resource/after-delombok/ValAnonymousSubclassWithGenerics.java
new file mode 100644
index 00000000..25a9e0ce
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValAnonymousSubclassWithGenerics.java
@@ -0,0 +1,18 @@
+import java.util.*;
+public class ValAnonymousSubclassWithGenerics {
+ Object object = new Object(){
+ void foo() {
+ final int j = 1;
+ }
+ };
+ void bar() {
+ final int k = super.hashCode();
+ int x = k;
+ }
+ java.util.List<String> names = new java.util.ArrayList<String>(){
+ public String get(int i) {
+ final java.lang.String result = super.get(i);
+ return result;
+ }
+ };
+}