Skip to content

Commit

Permalink
Merge pull request #32213 from Ladicek/arc-fix-known-compatible-bean-…
Browse files Browse the repository at this point in the history
…archives

ArC: fix known-compatible bean archives check
  • Loading branch information
Ladicek authored Mar 29, 2023
2 parents 5ec91a9 + bfe08d0 commit ed40a15
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.HashSet;
import java.util.List;
import java.util.Objects;
import java.util.Set;

import io.quarkus.deployment.ApplicationArchive;
Expand All @@ -18,6 +19,25 @@ private static class Key {
this.artifactId = artifactId;
this.classifier = classifier;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Key)) {
return false;
}
Key key = (Key) o;
return Objects.equals(groupId, key.groupId)
&& Objects.equals(artifactId, key.artifactId)
&& Objects.equals(classifier, key.classifier);
}

@Override
public int hashCode() {
return Objects.hash(groupId, artifactId, classifier);
}
}

private final Set<Key> keys;
Expand Down

0 comments on commit ed40a15

Please sign in to comment.