mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 22:17:41 +00:00
[fixes #2863] Clone primitive types
This commit is contained in:
1 parent
157ee0291a
commit
7585a539e0
1 file changed
+4
-1
@@ -106,6 +106,7 @@ import lombok.javac.Javac;
|
||||
import lombok.javac.JavacAugments;
|
||||
import lombok.javac.JavacNode;
|
||||
import lombok.javac.JavacTreeMaker;
|
||||
import lombok.javac.JavacTreeMaker.TypeTag;
|
||||
import lombok.permit.Permit;
|
||||
|
||||
/**
|
||||
@@ -2028,7 +2029,9 @@ public class JavacHandlerUtil {
|
||||
private static JCExpression cloneType0(JavacTreeMaker maker, JCTree in) {
|
||||
if (in == null) return null;
|
||||
|
||||
if (in instanceof JCPrimitiveTypeTree) return (JCExpression) in;
|
||||
if (in instanceof JCPrimitiveTypeTree) {
|
||||
return maker.TypeIdent(TypeTag.typeTag(in));
|
||||
}
|
||||
|
||||
if (in instanceof JCIdent) {
|
||||
return maker.Ident(((JCIdent) in).name);
|
||||
|
||||
Reference in new issue
Block a user