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:
parent
0e7e9013d4
commit
2db38abffc
|
@ -23,7 +23,6 @@ import java.util.Iterator;
|
|||
import java.util.Random;
|
||||
|
||||
import org.apache.hadoop.HadoopIllegalArgumentException;
|
||||
import org.apache.hadoop.util.Time;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
|
@ -471,7 +470,7 @@ public class TestGSet {
|
|||
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
return obj != null && obj instanceof IntElement
|
||||
return obj instanceof IntElement
|
||||
&& value == ((IntElement)obj).value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue