From 52d1aa860847629fbb12d008fc708166f000fa6c Mon Sep 17 00:00:00 2001 From: Rawi01 Date: Tue, 6 Apr 2021 12:18:24 +0200 Subject: Avoid reading file from disk by reusing the parser source --- src/core/lombok/eclipse/TransformEclipseAST.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/core/lombok/eclipse/TransformEclipseAST.java') 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"); -- cgit