HDFS-14328. [Clean-up] Remove NULL check before instanceof in TestGSet

(Contributed by Shweta Yakkali via Daniel Templeton)

Change-Id: I5b9f0e66664714d7c5bbfa30492a09f770626711
This commit is contained in:
Shweta Yakkali 2019-03-18 15:10:26 +01:00 committed by Daniel Templeton
parent 0e7e9013d4
commit 2db38abffc

View File

@ -23,7 +23,6 @@
import java.util.Random; import java.util.Random;
import org.apache.hadoop.HadoopIllegalArgumentException; import org.apache.hadoop.HadoopIllegalArgumentException;
import org.apache.hadoop.util.Time;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
@ -471,7 +470,7 @@ private static class IntElement implements LightWeightGSet.LinkedElement,
@Override @Override
public boolean equals(Object obj) { public boolean equals(Object obj) {
return obj != null && obj instanceof IntElement return obj instanceof IntElement
&& value == ((IntElement)obj).value; && value == ((IntElement)obj).value;
} }