PlotCommit: Suppress ReferenceEquality Warnings

Errorprone raises the following warning:
"[ReferenceEquality] Comparison using reference equality
instead of value equality"

Change-Id: Ia0dc2df68c77e40ff509a2c39568abce92525ee9
This commit is contained in:
Fabio Ponciroli 2022-03-11 10:03:30 +01:00 committed by Thomas Wolf
parent f1362e857e
commit cc8b2e627b
1 changed files with 1 additions and 0 deletions

View File

@ -138,6 +138,7 @@ public final PlotCommit getChild(int nth) {
* the commit to test.
* @return true if the given commit built on top of this commit.
*/
@SuppressWarnings("ReferenceEquality")
public final boolean isChild(PlotCommit c) {
for (PlotCommit a : children)
if (a == c)