aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.ui
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-08-09 01:13:54 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-08-09 01:49:59 +0200
commit66cb2d9db48836afac346e421034a418620e6aab (patch)
tree126cf0ad4d88804285a24326c3c4c18ea490ea66 /org.eclipse.jgit.ui
parent70258a9cb2b335bdc150283ed8ebbcf22a6e2f9f (diff)
downloadjgit-66cb2d9db48836afac346e421034a418620e6aab.tar.gz
jgit-66cb2d9db48836afac346e421034a418620e6aab.zip
[error prone] fix ReferenceEquality warning in CommitGraphPane#authorFor
Change-Id: I4d620ca65f7cd85863fe8b7182b01d262fbe3504 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.ui')
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
index 943a3256fb..b898cafca0 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
@@ -64,6 +64,7 @@ import org.eclipse.jgit.awtui.SwingCommitList.SwingLane;
import org.eclipse.jgit.lib.PersonIdent;
import org.eclipse.jgit.revplot.PlotCommit;
import org.eclipse.jgit.revplot.PlotCommitList;
+import org.eclipse.jgit.util.References;
/**
* Draws a commit graph in a JTable.
@@ -176,7 +177,7 @@ public class CommitGraphPane extends JTable {
}
PersonIdent authorFor(PlotCommit<SwingLane> c) {
- if (c != lastCommit) {
+ if (!References.isSameObject(c, lastCommit)) {
lastCommit = c;
lastAuthor = c.getAuthorIdent();
}