aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/ValInFor.java
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2010-11-29 22:43:44 +0100
committerRoel Spilker <r.spilker@gmail.com>2010-11-29 22:43:44 +0100
commitb0072a17eba21cdc6f8ba51693bb39d1c9aba319 (patch)
tree163706efa8fe6233b1da0dadd2872ec8682d91fb /test/transform/resource/before/ValInFor.java
parentdd0fded2bfbd5c318913209e93d74a2bb06f3d14 (diff)
downloadlombok-b0072a17eba21cdc6f8ba51693bb39d1c9aba319.tar.gz
lombok-b0072a17eba21cdc6f8ba51693bb39d1c9aba319.tar.bz2
lombok-b0072a17eba21cdc6f8ba51693bb39d1c9aba319.zip
lombok.val import now gets removed. Only adding lombok.val flags the compilation unit as changed.
Diffstat (limited to 'test/transform/resource/before/ValInFor.java')
-rw-r--r--test/transform/resource/before/ValInFor.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/transform/resource/before/ValInFor.java b/test/transform/resource/before/ValInFor.java
index af13540e..ebe7287c 100644
--- a/test/transform/resource/before/ValInFor.java
+++ b/test/transform/resource/before/ValInFor.java
@@ -1,3 +1,5 @@
+import lombok.val;
+
public class ValInFor {
{
val x = 10;
@@ -10,11 +12,11 @@ public class ValInFor {
}
}
-/* public void enhancedFor() {
+ public void enhancedFor() {
java.util.List<String> list = java.util.Arrays.asList("Hello, World!");
for (val shouldBeString : list) {
System.out.println(shouldBeString.toLowerCase());
val shouldBeString2 = shouldBeString;
}
- }*/
+ }
} \ No newline at end of file