From efce3404741a9a8e47707b912e6be218112f9a9f Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Wed, 30 Jul 2014 23:10:13 +0200 Subject: [PATCH] Implement RepoCommand.Project.hashCode() since we override equals() Bug: 440757 Change-Id: I16614c75b62b2fbef05419dd8667e3c50889abe4 Signed-off-by: Matthias Sohn --- .../src/org/eclipse/jgit/gitrepo/RepoCommand.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java index e506f2b05..12d4d311f 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RepoCommand.java @@ -297,6 +297,11 @@ public class RepoCommand extends GitCommand { return false; } + @Override + public int hashCode() { + return this.getPathWithSlash().hashCode(); + } + public int compareTo(Project that) { return this.getPathWithSlash().compareTo(that.getPathWithSlash()); }