aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValComplex.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/transform/resource/before/ValComplex.java')
-rw-r--r--test/transform/resource/before/ValComplex.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/transform/resource/before/ValComplex.java b/test/transform/resource/before/ValComplex.java
index c2e53011..e20124a2 100644
--- a/test/transform/resource/before/ValComplex.java
+++ b/test/transform/resource/before/ValComplex.java
@@ -1,11 +1,11 @@
import lombok.val;
public class ValComplex {
- private ValSimple field = new ValSimple();
+ private String field = "";
private static final int CONSTANT = 20;
- public void testReferencingOtherFiles() {
- val shouldBeString = field.method();
+ public void testComplex() {
+ val shouldBeCharArray = field.toCharArray();
val shouldBeInt = CONSTANT;
val lock = new Object();
synchronized (lock) {
@@ -13,10 +13,10 @@ public class ValComplex {
val inner = 10;
switch (field) {
case 5:
- val shouldBeString2 = shouldBeString;
+ val shouldBeCharArray2 = shouldBeCharArray;
val innerInner = inner;
}
}
- val shouldBeValSimple = field; //Unshadowing
+ val shouldBeString = field; //Unshadowing
}
} \ No newline at end of file