aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValComplex.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-ecj/ValComplex.java')
-rw-r--r--test/transform/resource/after-ecj/ValComplex.java27
1 files changed, 26 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/ValComplex.java b/test/transform/resource/after-ecj/ValComplex.java
index cb06d3c1..6e435e56 100644
--- a/test/transform/resource/after-ecj/ValComplex.java
+++ b/test/transform/resource/after-ecj/ValComplex.java
@@ -1 +1,26 @@
-//ignore \ No newline at end of file
+import lombok.val;
+public class ValComplex {
+ private String field = "";
+ private static final int CONSTANT = 20;
+ <clinit>() {
+ }
+ public ValComplex() {
+ super();
+ }
+ public void testComplex() {
+ final @val char[] shouldBeCharArray = field.toCharArray();
+ final @val int shouldBeInt = CONSTANT;
+ final @val java.lang.Object lock = new Object();
+ synchronized (lock)
+ {
+ final @val int field = 20;
+ final @val int inner = 10;
+ switch (field) {
+ case 5 : ;
+ final @val char[] shouldBeCharArray2 = shouldBeCharArray;
+ final @val int innerInner = inner;
+ }
+ }
+ final @val java.lang.String shouldBeString = field;
+ }
+} \ No newline at end of file