diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-02-15 04:45:28 +0100 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2012-02-15 04:45:28 +0100 |
commit | 0f861010989cb03d09003f91d936f100080b1a18 (patch) | |
tree | de440cf6320061ac3f64e694ef0ce3a04d360394 /test/transform/resource/after-ecj | |
parent | b4a8affec27ac09fd5bceeaad6a46f4bc6f18034 (diff) | |
download | lombok-0f861010989cb03d09003f91d936f100080b1a18.tar.gz lombok-0f861010989cb03d09003f91d936f100080b1a18.tar.bz2 lombok-0f861010989cb03d09003f91d936f100080b1a18.zip |
Couple more tests for val
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r-- | test/transform/resource/after-ecj/ValInBasicFor.java | 13 | ||||
-rw-r--r-- | test/transform/resource/after-ecj/ValInMultiDeclaration.java | 10 |
2 files changed, 23 insertions, 0 deletions
diff --git a/test/transform/resource/after-ecj/ValInBasicFor.java b/test/transform/resource/after-ecj/ValInBasicFor.java new file mode 100644 index 00000000..42e0a3c5 --- /dev/null +++ b/test/transform/resource/after-ecj/ValInBasicFor.java @@ -0,0 +1,13 @@ +import lombok.val; +public class ValInBasicFor { + public ValInBasicFor() { + super(); + } + public void basicFor() { + java.util.List<String> list = java.util.Arrays.asList("Hello, World!"); + for (val shouldBe = 1;, val marked = "";, val error = 1.0;; ; ) + { + System.out.println(""); + } + } +}
\ No newline at end of file diff --git a/test/transform/resource/after-ecj/ValInMultiDeclaration.java b/test/transform/resource/after-ecj/ValInMultiDeclaration.java new file mode 100644 index 00000000..5441f6fe --- /dev/null +++ b/test/transform/resource/after-ecj/ValInMultiDeclaration.java @@ -0,0 +1,10 @@ +import lombok.val; +public class ValInMultiDeclaration { + public ValInMultiDeclaration() { + super(); + } + public void test() { + final @val int x = 10; + final @val java.lang.String y = ""; + } +} |