Skip to content

Commit

Permalink
[FIXED JENKINS-29326] Restore lost BuildData.equals override.
Browse files Browse the repository at this point in the history
  • Loading branch information
jglick committed Mar 22, 2016
1 parent 0a1e82d commit 7e501ab
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/hudson/plugins/git/util/BuildData.java
Expand Up @@ -243,4 +243,22 @@ public String toString() {
",buildsByBranchName="+buildsByBranchName+
",lastBuild="+lastBuild+"]";
}

@Override
public boolean equals(Object o) {
if (!(o instanceof BuildData)) {
return false;
} else {
BuildData otherBuildData = (BuildData) o;

if (otherBuildData.remoteUrls.equals(this.remoteUrls)
&& otherBuildData.buildsByBranchName.equals(this.buildsByBranchName)
&& otherBuildData.lastBuild.equals(this.lastBuild)) {
return true;
} else {
return false;
}
}
}

}

0 comments on commit 7e501ab

Please sign in to comment.