mirror of
https://github.com/tiennm99/lombok.git
synced 2026-06-08 02:15:05 +00:00
lombok.val import now gets removed. Only adding lombok.val flags the compilation unit as changed.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user