Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.egit.ui')
-rw-r--r--org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/StashedCommitNode.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/StashedCommitNode.java b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/StashedCommitNode.java
index 463ff357a..e107c9519 100644
--- a/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/StashedCommitNode.java
+++ b/org.eclipse.egit.ui/src/org/eclipse/egit/ui/internal/repository/tree/StashedCommitNode.java
@@ -42,4 +42,15 @@ public class StashedCommitNode extends RepositoryTreeNode<RevCommit> {
public int getIndex() {
return index;
}
+
+ @Override
+ public boolean equals(Object obj) {
+ return super.equals(obj) && (obj instanceof StashedCommitNode)
+ && index == ((StashedCommitNode) obj).getIndex();
+ }
+
+ @Override
+ public int hashCode() {
+ return Integer.hashCode(index) * 31 + super.hashCode();
+ }
}

Back to the top