diff options
author | Roland Praml <praml@foconis.de> | 2018-07-08 17:18:54 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2018-08-20 20:46:31 +0200 |
commit | 763b384a169d3303ff82a044ec7be68be92691b1 (patch) | |
tree | 59cebf9265d1af1d7b416f7980760a5b5e10d622 /src/core/lombok/eclipse/EclipseNode.java | |
parent | fe2117e7796e8f85b5710944bfd3efb499c87865 (diff) | |
download | lombok-763b384a169d3303ff82a044ec7be68be92691b1.tar.gz lombok-763b384a169d3303ff82a044ec7be68be92691b1.tar.bz2 lombok-763b384a169d3303ff82a044ec7be68be92691b1.zip |
Do not use reflection to check if annotation is present
Diffstat (limited to 'src/core/lombok/eclipse/EclipseNode.java')
-rw-r--r-- | src/core/lombok/eclipse/EclipseNode.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lombok/eclipse/EclipseNode.java b/src/core/lombok/eclipse/EclipseNode.java index 4db1d38d..4e05fb30 100644 --- a/src/core/lombok/eclipse/EclipseNode.java +++ b/src/core/lombok/eclipse/EclipseNode.java @@ -53,7 +53,7 @@ public class EclipseNode extends lombok.core.LombokNode<EclipseAST, EclipseNode, * Visits this node and all child nodes depth-first, calling the provided visitor's visit methods. */ public void traverse(EclipseASTVisitor visitor) { - if (!this.isCompleteParse() && visitor.getClass().isAnnotationPresent(DeferUntilPostDiet.class)) return; + if (visitor.isDeferUntilPostDiet() && !isCompleteParse()) return; switch (getKind()) { case COMPILATION_UNIT: |