Skip to content

Commit

Permalink
Merge pull request #10 from ruromero/to-string
Browse files Browse the repository at this point in the history
fix: must compare using qualifiers
  • Loading branch information
ruromero authored Dec 13, 2023
2 parents 69e13ce + adea079 commit 179d2c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 64 deletions.
62 changes: 0 additions & 62 deletions .flattened-pom.xml

This file was deleted.

4 changes: 2 additions & 2 deletions src/main/java/com/redhat/exhort/api/PackageRef.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public boolean equals(Object other) {
if (!(other instanceof PackageRef)) {
return false;
}
return purl.isCoordinatesEquals(((PackageRef) other).purl());
return Objects.equals(purl, ((PackageRef) other).purl());
}

public static PackageRef parse(String gav, String pkgManager) {
Expand Down Expand Up @@ -187,6 +187,6 @@ public String toGav() {

@Override
public String toString() {
return purl.getCoordinates();
return purl.toString();
}
}

0 comments on commit 179d2c9

Please sign in to comment.