diff options
author | Matthias Sohn <matthias.sohn@sap.com> | 2019-08-09 01:13:54 +0200 |
---|---|---|
committer | Matthias Sohn <matthias.sohn@sap.com> | 2019-08-09 01:49:59 +0200 |
commit | 66cb2d9db48836afac346e421034a418620e6aab (patch) | |
tree | 126cf0ad4d88804285a24326c3c4c18ea490ea66 /org.eclipse.jgit.ui | |
parent | 70258a9cb2b335bdc150283ed8ebbcf22a6e2f9f (diff) | |
download | jgit-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.java | 3 |
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(); } |