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:
parent
f1362e857e
commit
cc8b2e627b
|
@ -138,6 +138,7 @@ public final PlotCommit getChild(int nth) {
|
||||||
* the commit to test.
|
* the commit to test.
|
||||||
* @return true if the given commit built on top of this commit.
|
* @return true if the given commit built on top of this commit.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("ReferenceEquality")
|
||||||
public final boolean isChild(PlotCommit c) {
|
public final boolean isChild(PlotCommit c) {
|
||||||
for (PlotCommit a : children)
|
for (PlotCommit a : children)
|
||||||
if (a == c)
|
if (a == c)
|
||||||
|
|
Loading…
Reference in New Issue