diff options
author | Konrad Kügler <swamblumat-eclipsebugs@yahoo.de> | 2014-04-27 20:35:14 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2014-05-03 23:08:09 +0200 |
commit | e5f7fdcf4f9f0e0d5175e612a466706d58accc0e (patch) | |
tree | 35f55eb99231a0f2ad1d512bd5ba323270c1c11f /org.eclipse.jgit/src | |
parent | 8b65a4e6c6fbbfb4c62fc69690ebce63ad689981 (diff) | |
download | jgit-e5f7fdcf4f9f0e0d5175e612a466706d58accc0e.tar.gz jgit-e5f7fdcf4f9f0e0d5175e612a466706d58accc0e.zip |
PlotLane: Use identity hashCode and equals
Using the lane position and other data for equals/hashCode is not
useful.
Change-Id: I7af151d8a84544a77a486474c8ac71dd80090c66
Signed-off-by: Konrad Kügler <swamblumat-eclipsebugs@yahoo.de>
Diffstat (limited to 'org.eclipse.jgit/src')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java | 1 | ||||
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotLane.java | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java index 943ec4ec3f..9175e14f2d 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotCommitList.java @@ -236,7 +236,6 @@ public class PlotCommitList<L extends PlotLane> extends if (newPos == -1) newPos = positionsAllocated++; freePositions.add(Integer.valueOf(commit.lane.getPosition())); - activeLanes.remove(commit.lane); commit.lane.position = newPos; activeLanes.add(commit.lane); } diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotLane.java b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotLane.java index fe67ac9931..866a0f9438 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotLane.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/revplot/PlotLane.java @@ -63,12 +63,4 @@ public class PlotLane implements Serializable { public int getPosition() { return position; } - - public int hashCode() { - return position; - } - - public boolean equals(final Object o) { - return o == this; - } } |