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
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}