aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/transform/resource/after-delombok/VarNullInit.java3
-rw-r--r--test/transform/resource/after-ecj/VarNullInit.java5
-rw-r--r--test/transform/resource/before/VarNullInit.java2
-rw-r--r--test/transform/resource/messages-delombok/VarNullInit.java.messages1
-rw-r--r--test/transform/resource/messages-ecj/VarNullInit.java.messages1
5 files changed, 7 insertions, 5 deletions
diff --git a/test/transform/resource/after-delombok/VarNullInit.java b/test/transform/resource/after-delombok/VarNullInit.java
index f0087765..8ec2ea73 100644
--- a/test/transform/resource/after-delombok/VarNullInit.java
+++ b/test/transform/resource/after-delombok/VarNullInit.java
@@ -1,4 +1,5 @@
-class VarNullInit {
+
+public class VarNullInit {
void method() {
java.lang.Object x = null;
}
diff --git a/test/transform/resource/after-ecj/VarNullInit.java b/test/transform/resource/after-ecj/VarNullInit.java
index ba8c3e46..3eb2d506 100644
--- a/test/transform/resource/after-ecj/VarNullInit.java
+++ b/test/transform/resource/after-ecj/VarNullInit.java
@@ -1,7 +1,6 @@
import lombok.experimental.var;
-
-class VarNullInit {
- VarNullInit() {
+public class VarNullInit {
+ public VarNullInit() {
super();
}
void method() {
diff --git a/test/transform/resource/before/VarNullInit.java b/test/transform/resource/before/VarNullInit.java
index f7f9c55b..efdc9d9e 100644
--- a/test/transform/resource/before/VarNullInit.java
+++ b/test/transform/resource/before/VarNullInit.java
@@ -1,7 +1,7 @@
//CONF: lombok.var.flagUsage = ALLOW
import lombok.experimental.var;
-class VarNullInit {
+public class VarNullInit {
void method() {
var x = null;
}
diff --git a/test/transform/resource/messages-delombok/VarNullInit.java.messages b/test/transform/resource/messages-delombok/VarNullInit.java.messages
new file mode 100644
index 00000000..190ab7c4
--- /dev/null
+++ b/test/transform/resource/messages-delombok/VarNullInit.java.messages
@@ -0,0 +1 @@
+6 variable initializer is 'null' \ No newline at end of file
diff --git a/test/transform/resource/messages-ecj/VarNullInit.java.messages b/test/transform/resource/messages-ecj/VarNullInit.java.messages
new file mode 100644
index 00000000..190ab7c4
--- /dev/null
+++ b/test/transform/resource/messages-ecj/VarNullInit.java.messages
@@ -0,0 +1 @@
+6 variable initializer is 'null' \ No newline at end of file