aboutsummaryrefslogtreecommitdiff
path: root/src/core/lombok/javac
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 /src/core/lombok/javac
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 'src/core/lombok/javac')
-rw-r--r--src/core/lombok/javac/handlers/HandleVal.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lombok/javac/handlers/HandleVal.java b/src/core/lombok/javac/handlers/HandleVal.java
index f4c816d6..5b90ff62 100644
--- a/src/core/lombok/javac/handlers/HandleVal.java
+++ b/src/core/lombok/javac/handlers/HandleVal.java
@@ -31,7 +31,7 @@ import lombok.ConfigurationKeys;
import lombok.core.HandlerPriority;
import lombok.javac.*;
import lombok.val;
-import lombok.var;
+import lombok.experimental.var;
import org.mangosdk.spi.ProviderFor;
import static lombok.core.handlers.HandlerUtil.handleFlagUsage;
@@ -88,8 +88,8 @@ public class HandleVal extends JavacASTAdapter {
}
if (localNode.shouldDeleteLombokAnnotations()) {
- JavacHandlerUtil.deleteImportFromCompilationUnit(localNode, "lombok.val");
- JavacHandlerUtil.deleteImportFromCompilationUnit(localNode, "lombok.var");
+ JavacHandlerUtil.deleteImportFromCompilationUnit(localNode, val.class.getName());
+ JavacHandlerUtil.deleteImportFromCompilationUnit(localNode, var.class.getName());
}
if (isVal) local.mods.flags |= Flags.FINAL;