Explorar el Código

Implement RepoCommand.Project.hashCode() since we override equals()

Bug: 440757
Change-Id: I16614c75b62b2fbef05419dd8667e3c50889abe4
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v3.5.0.201409071800-rc1
Matthias Sohn hace 10 años
padre
commit
efce340474

+ 5
- 0
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java Ver fichero

return false; return false;
} }


@Override
public int hashCode() {
return this.getPathWithSlash().hashCode();
}

public int compareTo(Project that) { public int compareTo(Project that) {
return this.getPathWithSlash().compareTo(that.getPathWithSlash()); return this.getPathWithSlash().compareTo(that.getPathWithSlash());
} }

Cargando…
Cancelar
Guardar