diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-04-18 05:45:28 +0200 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2021-04-18 05:45:28 +0200 |
commit | ba9ffce89841e6fdbec7c2d234c3a70a2db7f80d (patch) | |
tree | 9b2040710997bb1270a9c03b0a49b9f830621b86 /src/core/lombok/javac/handlers/HandleWith.java | |
parent | 01702f70d063b7c7685f8c4de94e6d1718047390 (diff) | |
parent | 6782aceeb0bc082357bbd3ff20b166c379afb380 (diff) | |
download | lombok-ba9ffce89841e6fdbec7c2d234c3a70a2db7f80d.tar.gz lombok-ba9ffce89841e6fdbec7c2d234c3a70a2db7f80d.tar.bz2 lombok-ba9ffce89841e6fdbec7c2d234c3a70a2db7f80d.zip |
Merge branch 'enter-types-methods-fields' of git://github.com/Rawi01/lombok into Rawi01-enter-types-methods-fields
Diffstat (limited to 'src/core/lombok/javac/handlers/HandleWith.java')
-rw-r--r-- | src/core/lombok/javac/handlers/HandleWith.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/core/lombok/javac/handlers/HandleWith.java b/src/core/lombok/javac/handlers/HandleWith.java index f914b4c7..47f78b1e 100644 --- a/src/core/lombok/javac/handlers/HandleWith.java +++ b/src/core/lombok/javac/handlers/HandleWith.java @@ -40,8 +40,6 @@ import lombok.javac.handlers.JavacHandlerUtil.CopyJavadoc; import lombok.spi.Provides; import com.sun.tools.javac.code.Flags; -import com.sun.tools.javac.code.Type; -import com.sun.tools.javac.code.Symbol.ClassSymbol; import com.sun.tools.javac.tree.JCTree.JCAnnotation; import com.sun.tools.javac.tree.JCTree.JCBlock; import com.sun.tools.javac.tree.JCTree.JCClassDecl; @@ -211,11 +209,8 @@ public class HandleWith extends JavacAnnotationHandler<With> { JCMethodDecl createdWith = createWith(access, fieldNode, fieldNode.getTreeMaker(), source, onMethod, onParam, makeAbstract); createRelevantNonNullAnnotation(fieldNode, createdWith); - ClassSymbol sym = ((JCClassDecl) fieldNode.up().get()).sym; - Type returnType = sym == null ? null : sym.type; - recursiveSetGeneratedBy(createdWith, source); - injectMethod(typeNode, createdWith, List.<Type>of(getMirrorForFieldType(fieldNode)), returnType); + injectMethod(typeNode, createdWith); } public JCMethodDecl createWith(long access, JavacNode field, JavacTreeMaker maker, JavacNode source, List<JCAnnotation> onMethod, List<JCAnnotation> onParam, boolean makeAbstract) { |