diff options
author | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 02:56:05 +0200 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2014-06-06 02:56:05 +0200 |
commit | 33ead46639087a4e772d6535d0354f39fadc5724 (patch) | |
tree | 1a7806ed96d22727e7eda70fcd4231df55668f5e /src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java | |
parent | 288a2236c0d5c4c129d837330ca16bfef8e5b2e2 (diff) | |
parent | 68c5b016f9a2663abc9cd4aeb0cc0034949469ca (diff) | |
download | lombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.gz lombok-33ead46639087a4e772d6535d0354f39fadc5724.tar.bz2 lombok-33ead46639087a4e772d6535d0354f39fadc5724.zip |
Merge branch 'master' into configResolutionInEclipse
Diffstat (limited to 'src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java')
-rw-r--r-- | src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java index 2370d3ff..d1c668a0 100644 --- a/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java +++ b/src/eclipseAgent/lombok/eclipse/agent/PatchFixes.java @@ -32,6 +32,7 @@ import java.util.Stack; import lombok.core.DiagnosticsReceiver; import lombok.core.PostCompiler; import lombok.core.Version; +import lombok.eclipse.EclipseAugments; import org.eclipse.core.runtime.CoreException; import org.eclipse.jdt.core.IAnnotatable; @@ -255,13 +256,13 @@ public class PatchFixes { public static void setIsGeneratedFlag(org.eclipse.jdt.core.dom.ASTNode domNode, org.eclipse.jdt.internal.compiler.ast.ASTNode internalNode) throws Exception { if (internalNode == null || domNode == null) return; - boolean isGenerated = internalNode.getClass().getField("$generatedBy").get(internalNode) != null; + boolean isGenerated = EclipseAugments.ASTNode_generatedBy.get(internalNode) != null; if (isGenerated) domNode.getClass().getField("$isGenerated").set(domNode, true); } public static void setIsGeneratedFlagForName(org.eclipse.jdt.core.dom.Name name, Object internalNode) throws Exception { if (internalNode instanceof org.eclipse.jdt.internal.compiler.ast.ASTNode) { - if (internalNode.getClass().getField("$generatedBy").get(internalNode) != null) { + if (EclipseAugments.ASTNode_generatedBy.get((org.eclipse.jdt.internal.compiler.ast.ASTNode) internalNode) != null) { name.getClass().getField("$isGenerated").set(name, true); } } |