aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/VarNullInit.java
diff options
context:
space:
mode:
authorBulgakov Alexander <abulgakov@at-consulting.ru>2016-11-12 23:04:48 +0300
committerBulgakov Alexander <abulgakov@at-consulting.ru>2016-11-12 23:04:48 +0300
commit69eeb9edc767bb3ceb0320bb5a0ea60dfabe827c (patch)
treee579423fe8ae7b5a961b0e643703a45dd167e36b /test/transform/resource/before/VarNullInit.java
parent67371e5841e1dd8ed5d663f1c907da0952976b8f (diff)
downloadlombok-69eeb9edc767bb3ceb0320bb5a0ea60dfabe827c.tar.gz
lombok-69eeb9edc767bb3ceb0320bb5a0ea60dfabe827c.tar.bz2
lombok-69eeb9edc767bb3ceb0320bb5a0ea60dfabe827c.zip
a initialization of variable like "var o = null;" will throw the compile time error "variable initializer is 'null'"
Diffstat (limited to 'test/transform/resource/before/VarNullInit.java')
-rw-r--r--test/transform/resource/before/VarNullInit.java2
1 files changed, 1 insertions, 1 deletions
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;
}