aboutsummaryrefslogtreecommitdiff
path: root/src/utils/lombok/javac
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2018-04-23 21:09:46 +0200
committerGitHub <noreply@github.com>2018-04-23 21:09:46 +0200
commitc0a3ad3d18f1028b0bce598f0be275713249accf (patch)
tree6dd6f79edca2aa4ea597a8ad59dcb492cf902535 /src/utils/lombok/javac
parent6d6e3dc6a97fa39b5b03f02285744bb37931ecaa (diff)
parente6532bbe94f9b5f0452e97bc9462e084b25f7aa2 (diff)
downloadlombok-c0a3ad3d18f1028b0bce598f0be275713249accf.tar.gz
lombok-c0a3ad3d18f1028b0bce598f0be275713249accf.tar.bz2
lombok-c0a3ad3d18f1028b0bce598f0be275713249accf.zip
Merge pull request #1670 from kdaemonv/hotfix-1
Revert some changes from f540335 which break the build
Diffstat (limited to 'src/utils/lombok/javac')
-rw-r--r--src/utils/lombok/javac/Javac.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/utils/lombok/javac/Javac.java b/src/utils/lombok/javac/Javac.java
index 2a66baba..92961726 100644
--- a/src/utils/lombok/javac/Javac.java
+++ b/src/utils/lombok/javac/Javac.java
@@ -36,7 +36,8 @@ import javax.lang.model.type.NoType;
import javax.lang.model.type.TypeKind;
import javax.lang.model.type.TypeVisitor;
-import lombok.core.AnnotationValues;
+import lombok.core.ClassLiteral;
+import lombok.core.FieldSelect;
import lombok.javac.JavacTreeMaker.TreeTag;
import lombok.javac.JavacTreeMaker.TypeTag;
@@ -148,10 +149,10 @@ public class Javac {
if (expr instanceof JCIdent || expr instanceof JCFieldAccess) {
String x = expr.toString();
- if (x.endsWith(".class")) return new AnnotationValues.ClassLiteral(x.substring(0, x.length() - 6));
+ if (x.endsWith(".class")) return new ClassLiteral(x.substring(0, x.length() - 6));
int idx = x.lastIndexOf('.');
if (idx > -1) x = x.substring(idx + 1);
- return new AnnotationValues.FieldSelect(x);
+ return new FieldSelect(x);
}
return null;