aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/ValSimple.java
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2012-02-14 16:39:48 +0100
committerReinier Zwitserloot <reinier@zwitserloot.com>2012-02-14 16:39:48 +0100
commit06581537f24fe31ee096960be496bc503059a95e (patch)
tree3732f6fe2117c390f9812b5961dd2d95d4293026 /test/transform/resource/after-ecj/ValSimple.java
parent5e9e16a6b98da5a17f5efe785917bc1e92265fc8 (diff)
downloadlombok-06581537f24fe31ee096960be496bc503059a95e.tar.gz
lombok-06581537f24fe31ee096960be496bc503059a95e.tar.bz2
lombok-06581537f24fe31ee096960be496bc503059a95e.zip
More test files, test files updated to be valid java, and ecj test now goes through the complete compile process. This means val and @Delegate testing is now enabled.
TODO: Update -eclipse tests.
Diffstat (limited to 'test/transform/resource/after-ecj/ValSimple.java')
-rw-r--r--test/transform/resource/after-ecj/ValSimple.java26
1 files changed, 25 insertions, 1 deletions
diff --git a/test/transform/resource/after-ecj/ValSimple.java b/test/transform/resource/after-ecj/ValSimple.java
index cb06d3c1..3a8fb188 100644
--- a/test/transform/resource/after-ecj/ValSimple.java
+++ b/test/transform/resource/after-ecj/ValSimple.java
@@ -1 +1,25 @@
-//ignore \ No newline at end of file
+import lombok.val;
+public class ValSimple {
+ private String field = "field";
+ private short field2 = 5;
+ public ValSimple() {
+ super();
+ }
+ private String method() {
+ return "method";
+ }
+ private double method2() {
+ return 2.0;
+ }
+ private void testVal(String param) {
+ final @val java.lang.String fieldV = field;
+ final @val java.lang.String methodV = method();
+ final @val java.lang.String paramV = param;
+ final @val java.lang.String valOfVal = fieldV;
+ final @val java.lang.String operatorV = (fieldV + valOfVal);
+ final @val short fieldW = field2;
+ final @val double methodW = method2();
+ byte localVar = 3;
+ final @val int operatorW = (fieldW + localVar);
+ }
+} \ No newline at end of file