diff options
author | Rawi01 <Rawi01@users.noreply.github.com> | 2020-09-12 14:35:40 +0200 |
---|---|---|
committer | Rawi01 <Rawi01@users.noreply.github.com> | 2020-09-12 14:35:40 +0200 |
commit | fa0b5249cf5fee28d9be13ecdf0225f651f686aa (patch) | |
tree | 881cc34c60f69d7895be222201a059d268d91cf0 /src/core/lombok/javac | |
parent | 0064c534273d9fb877f7e570f7a430060c88a5fb (diff) | |
download | lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.tar.gz lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.tar.bz2 lombok-fa0b5249cf5fee28d9be13ecdf0225f651f686aa.zip |
Support With(By) on records and record components
This also replaces the javac/eclipse specific code for searching the
parent fields of an annotation by a search based on the lombok AST.
Diffstat (limited to 'src/core/lombok/javac')
-rw-r--r-- | src/core/lombok/javac/JavacNode.java | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/core/lombok/javac/JavacNode.java b/src/core/lombok/javac/JavacNode.java index 3de3f38b..e648cd51 100644 --- a/src/core/lombok/javac/JavacNode.java +++ b/src/core/lombok/javac/JavacNode.java @@ -186,16 +186,6 @@ public class JavacNode extends lombok.core.LombokNode<JavacAST, JavacNode, JCTre return false; } - @Override protected boolean fieldContainsAnnotation(JCTree field, JCTree annotation) { - if (!(field instanceof JCVariableDecl)) return false; - JCVariableDecl f = (JCVariableDecl) field; - if (f.mods.annotations == null) return false; - for (JCAnnotation childAnnotation : f.mods.annotations) { - if (childAnnotation == annotation) return true; - } - return false; - } - /** * Convenient shortcut to the owning JavacAST object's getTreeMaker method. * |