Skip to content
Permalink
Browse files

[FIXED JENKINS-29326] Restore lost BuildData.equals override.

  • Loading branch information...
jglick committed Mar 22, 2016
1 parent 0a1e82d commit 7e501ab38c60ad203cd5f1cdce8a9683c4fb89d8
Showing with 18 additions and 0 deletions.
  1. +18 −0 src/main/java/hudson/plugins/git/util/BuildData.java
@@ -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.
You can’t perform that action at this time.