aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj
diff options
context:
space:
mode:
authorBulgakov Alexander <abulgakov@at-consulting.ru>2016-10-26 23:18:47 +0300
committerBulgakov Alexander <abulgakov@at-consulting.ru>2016-10-26 23:18:47 +0300
commit710a04607b2c8c875d1971dd517f9eace10a14b4 (patch)
tree76dcf247f8724b3b47ee177afbce81dc97fa8b3d /test/transform/resource/after-ecj
parent55619e8030768fb42f8a9b4207bb330806eaceef (diff)
downloadlombok-710a04607b2c8c875d1971dd517f9eace10a14b4.tar.gz
lombok-710a04607b2c8c875d1971dd517f9eace10a14b4.tar.bz2
lombok-710a04607b2c8c875d1971dd517f9eace10a14b4.zip
The @var annotation has been moved to the experimental package.
Added a test of a @var variable with null initialization.
Diffstat (limited to 'test/transform/resource/after-ecj')
-rw-r--r--test/transform/resource/after-ecj/ValNullInit.java10
-rw-r--r--test/transform/resource/after-ecj/VarComplex.java2
-rw-r--r--test/transform/resource/after-ecj/VarInFor.java2
-rw-r--r--test/transform/resource/after-ecj/VarInForOld.java2
-rw-r--r--test/transform/resource/after-ecj/VarModifier.java2
-rw-r--r--test/transform/resource/after-ecj/VarNullInit.java10
6 files changed, 24 insertions, 4 deletions
diff --git a/test/transform/resource/after-ecj/ValNullInit.java b/test/transform/resource/after-ecj/ValNullInit.java
new file mode 100644
index 00000000..bd89c023
--- /dev/null
+++ b/test/transform/resource/after-ecj/ValNullInit.java
@@ -0,0 +1,10 @@
+import lombok.val;
+
+class ValNullInit {
+ ValNullInit() {
+ super();
+ }
+ void method() {
+ final @val java.lang.Object x = null;
+ }
+} \ No newline at end of file
diff --git a/test/transform/resource/after-ecj/VarComplex.java b/test/transform/resource/after-ecj/VarComplex.java
index 97a0a177..10c456eb 100644
--- a/test/transform/resource/after-ecj/VarComplex.java
+++ b/test/transform/resource/after-ecj/VarComplex.java
@@ -1,4 +1,4 @@
-import lombok.var;
+import lombok.experimental.var;
public class VarComplex {
private String field = "";
private static final int CONSTANT = 20;
diff --git a/test/transform/resource/after-ecj/VarInFor.java b/test/transform/resource/after-ecj/VarInFor.java
index 1799d9b7..0192aaed 100644
--- a/test/transform/resource/after-ecj/VarInFor.java
+++ b/test/transform/resource/after-ecj/VarInFor.java
@@ -1,4 +1,4 @@
-import lombok.var;
+import lombok.experimental.var;
public class VarInFor {
public VarInFor() {
super();
diff --git a/test/transform/resource/after-ecj/VarInForOld.java b/test/transform/resource/after-ecj/VarInForOld.java
index 065ea94d..98fedf03 100644
--- a/test/transform/resource/after-ecj/VarInForOld.java
+++ b/test/transform/resource/after-ecj/VarInForOld.java
@@ -1,4 +1,4 @@
-import lombok.var;
+import lombok.experimental.var;
public class VarInForOld {
public VarInForOld() {
super();
diff --git a/test/transform/resource/after-ecj/VarModifier.java b/test/transform/resource/after-ecj/VarModifier.java
index 7f26534c..d11142ca 100644
--- a/test/transform/resource/after-ecj/VarModifier.java
+++ b/test/transform/resource/after-ecj/VarModifier.java
@@ -1,4 +1,4 @@
-import lombok.var;
+import lombok.experimental.var;
public class VarModifier {
private String field = "";
public VarModifier() {
diff --git a/test/transform/resource/after-ecj/VarNullInit.java b/test/transform/resource/after-ecj/VarNullInit.java
new file mode 100644
index 00000000..966afdc9
--- /dev/null
+++ b/test/transform/resource/after-ecj/VarNullInit.java
@@ -0,0 +1,10 @@
+import lombok.experimental.var;
+
+class VarNullInit {
+ ValNullInit() {
+ super();
+ }
+ void method() {
+ final @var java.lang.Object x = null;
+ }
+} \ No newline at end of file