diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2021-04-18 06:33:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-18 06:33:56 +0200 |
commit | 561870c7cc61f16105447d84cf4d732b557296ed (patch) | |
tree | 9b71bc5764b69381ca6084337d274631c3a74649 /src/core/lombok/eclipse/TransformEclipseAST.java | |
parent | 8e7fcac2e39f7eb8809130ae73b4d17965a5d9f2 (diff) | |
parent | 52d1aa860847629fbb12d008fc708166f000fa6c (diff) | |
download | lombok-561870c7cc61f16105447d84cf4d732b557296ed.tar.gz lombok-561870c7cc61f16105447d84cf4d732b557296ed.tar.bz2 lombok-561870c7cc61f16105447d84cf4d732b557296ed.zip |
Merge pull request #2809 from Rawi01/eclipse-javadoc-performance
Avoid reading file from disk by reusing the parser source
Diffstat (limited to 'src/core/lombok/eclipse/TransformEclipseAST.java')
-rw-r--r-- | src/core/lombok/eclipse/TransformEclipseAST.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lombok/eclipse/TransformEclipseAST.java b/src/core/lombok/eclipse/TransformEclipseAST.java index 59a0709e..201d4695 100644 --- a/src/core/lombok/eclipse/TransformEclipseAST.java +++ b/src/core/lombok/eclipse/TransformEclipseAST.java @@ -182,6 +182,7 @@ public class TransformEclipseAST { DebugSnapshotStore.INSTANCE.snapshot(ast, "transform entry"); long histoToken = lombokTracker == null ? 0L : lombokTracker.start(); EclipseAST existing = getAST(ast, false); + existing.setSource(parser.scanner.getSource()); new TransformEclipseAST(existing).go(); if (lombokTracker != null) lombokTracker.end(histoToken); DebugSnapshotStore.INSTANCE.snapshot(ast, "transform exit"); |