aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ValComplex.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/after-delombok/ValComplex.java')
-rw-r--r--test/transform/resource/after-delombok/ValComplex.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/transform/resource/after-delombok/ValComplex.java b/test/transform/resource/after-delombok/ValComplex.java
new file mode 100644
index 00000000..54ef5c78
--- /dev/null
+++ b/test/transform/resource/after-delombok/ValComplex.java
@@ -0,0 +1,20 @@
+public class ValComplex {
+ private ValSimple field = new ValSimple();
+ private static final int CONSTANT = 20;
+ public void testReferencingOtherFiles() {
+ final java.lang.String shouldBeString = field.method();
+ final int shouldBeInt = CONSTANT;
+ final java.lang.Object lock = new Object();
+ synchronized (lock) {
+ final int field = 20; //Shadowing
+ final int inner = 10;
+ switch (field) {
+ case 5:
+ final java.lang.String shouldBeString2 = shouldBeString;
+ final int innerInner = inner;
+
+ }
+ }
+ final ValSimple shouldBeValSimple = field; //Unshadowing
+ }
+} \ No newline at end of file