added supporting of @var variables. The @var annotation has the same functionality as the @val except 'final' modifier.

This commit is contained in:
Bulgakov Alexander committed 2016-10-24 16:28:02 +03:00
1 parent 4d9da60f4f
commit 55619e8030
18 files changed
+321 -106

No files matched your search

@@ -0,0 +1,14 @@
import lombok.var;
public class VarInFor {
public VarInFor() {
super();
}
public void enhancedFor() {
int[] list = new int[]{1, 2};
for (@var int shouldBeInt : list)
{
System.out.println(shouldBeInt);
@var int shouldBeInt2 = shouldBeInt;
}
}
}