diff options
author | Bulgakov Alexander <abulgakov@at-consulting.ru> | 2016-10-26 23:18:47 +0300 |
---|---|---|
committer | Bulgakov Alexander <abulgakov@at-consulting.ru> | 2016-10-26 23:18:47 +0300 |
commit | 710a04607b2c8c875d1971dd517f9eace10a14b4 (patch) | |
tree | 76dcf247f8724b3b47ee177afbce81dc97fa8b3d /src/core/lombok/javac | |
parent | 55619e8030768fb42f8a9b4207bb330806eaceef (diff) | |
download | lombok-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.java | 6 |
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; |