Implement RepoCommand.Project.hashCode() since we override equals()
Bug: 440757 Change-Id: I16614c75b62b2fbef05419dd8667e3c50889abe4 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
parent
56fdbadc76
commit
efce340474
|
@ -297,6 +297,11 @@ public boolean equals(Object o) {
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return this.getPathWithSlash().hashCode();
|
||||
}
|
||||
|
||||
public int compareTo(Project that) {
|
||||
return this.getPathWithSlash().compareTo(that.getPathWithSlash());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue