Skip to content

Commit

Permalink
Merge pull request #16426 from stuartwdouglas/16347
Browse files Browse the repository at this point in the history
Make sure class is only processed once
  • Loading branch information
gsmet committed Apr 12, 2021
2 parents f32102d + 963358c commit 0af6b1e
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -57,8 +57,13 @@ void transformerBuildItem(BuildProducer<BytecodeTransformerBuildItem> transforme
Files.deleteIfExists(Paths.get(dataFile));

Instrumenter instrumenter = new Instrumenter(new OfflineInstrumentationAccessGenerator());
Set<String> seen = new HashSet<>();
for (ClassInfo i : indexBuildItem.getIndex().getKnownClasses()) {
String className = i.name().toString();
if (seen.contains(className)) {
continue;
}
seen.add(className);
transformers.produce(
new BytecodeTransformerBuildItem.Builder().setClassToTransform(className)
.setCacheable(true)
Expand Down

0 comments on commit 0af6b1e

Please sign in to comment.