Index: ArtifactDownloadReport.java =================================================================== --- ArtifactDownloadReport.java (revision 807293) +++ ArtifactDownloadReport.java (working copy) @@ -156,28 +156,34 @@ } public int hashCode() { + final int prime = 31; int result = 1; - result = prime * result + ((artifact == null) ? 0 : artifact.hashCode()); + + result = prime * result + ((artifact == null) ? 0 : artifact.toString().hashCode()); return result; + } public boolean equals(Object obj) { if (this == obj) { return true; } + if (obj == null) { return false; } + if (getClass() != obj.getClass()) { return false; } + ArtifactDownloadReport other = (ArtifactDownloadReport) obj; if (artifact == null) { if (other.artifact != null) { return false; } - } else if (!artifact.equals(other.artifact)) { + } else if (!artifact.toString().equals(other.getArtifact().toString())) { return false; } return true;