aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValAnonymousSubclassSelfReference.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/ValAnonymousSubclassSelfReference.java')
-rw-r--r--test/transform/resource/before/ValAnonymousSubclassSelfReference.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/transform/resource/before/ValAnonymousSubclassSelfReference.java b/test/transform/resource/before/ValAnonymousSubclassSelfReference.java
new file mode 100644
index 00000000..6ca05b3c
--- /dev/null
+++ b/test/transform/resource/before/ValAnonymousSubclassSelfReference.java
@@ -0,0 +1,12 @@
+// issue 2420: to trigger the problem 2 var/val, one normal variable and a anonymous self reference is required
+import lombok.val;
+
+public class ValAnonymousSubclassSelfReference {
+ public void test() {
+ int i = 0;
+ val j = 1;
+ val k = 2;
+
+ new ValAnonymousSubclassSelfReference() { };
+ }
+} \ No newline at end of file