Преглед изворни кода

[error prone] fix ReferenceEquality warning in CommitGraphPane#authorFor

Change-Id: I4d620ca65f7cd85863fe8b7182b01d262fbe3504
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v5.4.1.201908211225-r
Matthias Sohn пре 4 година
родитељ
комит
66cb2d9db4
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2
    1
      org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java

+ 2
- 1
org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java Прегледај датотеку

import org.eclipse.jgit.lib.PersonIdent; import org.eclipse.jgit.lib.PersonIdent;
import org.eclipse.jgit.revplot.PlotCommit; import org.eclipse.jgit.revplot.PlotCommit;
import org.eclipse.jgit.revplot.PlotCommitList; import org.eclipse.jgit.revplot.PlotCommitList;
import org.eclipse.jgit.util.References;


/** /**
* Draws a commit graph in a JTable. * Draws a commit graph in a JTable.
} }


PersonIdent authorFor(PlotCommit<SwingLane> c) { PersonIdent authorFor(PlotCommit<SwingLane> c) {
if (c != lastCommit) {
if (!References.isSameObject(c, lastCommit)) {
lastCommit = c; lastCommit = c;
lastAuthor = c.getAuthorIdent(); lastAuthor = c.getAuthorIdent();
} }

Loading…
Откажи
Сачувај