[error prone] fix ReferenceEquality warning in CommitGraphPane#authorFor

Change-Id: I4d620ca65f7cd85863fe8b7182b01d262fbe3504
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
This commit is contained in:
Matthias Sohn 2019-08-09 01:13:54 +02:00
parent 70258a9cb2
commit 66cb2d9db4
1 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@
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 Object getValueAt(int rowIndex, int columnIndex) {
}
PersonIdent authorFor(PlotCommit<SwingLane> c) {
if (c != lastCommit) {
if (!References.isSameObject(c, lastCommit)) {
lastCommit = c;
lastAuthor = c.getAuthorIdent();
}