Skip to content

Commit

Permalink
Only add marker to newly parsed resources to avoid adding other sourc…
Browse files Browse the repository at this point in the history
…e set's JavaVersion markers to previously parsed source files
  • Loading branch information
shanman190 committed Aug 5, 2024
1 parent 042b0ef commit 9992c58
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@ public Stream<SourceFile> parse(Project subproject, Set<Path> alreadyParsed, Exe
sourceSetSourceFiles = Stream.concat(
sourceSetSourceFiles,
omniParser.parse(accepted, baseDir, new InMemoryExecutionContext())
).map(it -> it.withMarkers(it.getMarkers().add(javaVersion)));
.map(it -> it.withMarkers(it.getMarkers().add(javaVersion)))
);
alreadyParsed.addAll(accepted);
sourceSetSize += accepted.size();
}
Expand Down

0 comments on commit 9992c58

Please sign in to comment.