]> source.dussan.org Git - jgit.git/commit
Blame: Suppress ReferenceEquality warning for RevCommit instances 85/143785/4
authorDavid Pursehouse <david.pursehouse@gmail.com>
Wed, 12 Jun 2019 04:02:07 +0000 (13:02 +0900)
committerDavid Pursehouse <david.pursehouse@gmail.com>
Sun, 16 Jun 2019 23:18:12 +0000 (08:18 +0900)
commit215a2dcf0f63cb53209353f17b08e78c9b85233c
tree2d87cd66a21eab27ab5b414baf23f23da48f7b2d
parent76b3781f4b9d9bce83ce81886851b90e486c34fb
Blame: Suppress ReferenceEquality warning for RevCommit instances

Reference comparison of the RevCommit objects is OK; BlameGenerator uses
a single RevWalk which caches the RevCommits, so if a given commit is
cached the RevWalk will always return the same instance.

Factor the comparison out to a method, and suppress the warning with an
explanatory comment.

Change-Id: I5a148001dba7749ac15119aed388adb12b6f51ad
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Blame.java