From e6532bbe94f9b5f0452e97bc9462e084b25f7aa2 Mon Sep 17 00:00:00 2001 From: Dmitry Kurelchuk Date: Fri, 20 Apr 2018 22:47:34 +0300 Subject: move ClassLiteral and FieldSelect from core/lombok/core/AnnotationValues.java to utils/lombok/core/ --- src/utils/lombok/javac/Javac.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/utils/lombok/javac/Javac.java') 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; -- cgit