Skip to content

Commit

Permalink
Only deserialize type tables when there are artifacts to match
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Feb 25, 2025
1 parent 6cc119a commit 26726bf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ static class Reader {
private final Map<ClassDefinition, List<Member>> membersByClassName = new HashMap<>();

public void read(InputStream is, Collection<String> artifactNames) throws IOException {
if (artifactNames.isEmpty()) {
// could be empty due to the filtering in `artifactsNotYetWritten()`
return;
}

Set<Pattern> artifactNamePatterns = artifactNames.stream()
.map(name -> Pattern.compile(name + ".*"))
.collect(Collectors.toSet());
Expand Down

0 comments on commit 26726bf

Please sign in to comment.