YARN-9340. [Clean-up] Remove NULL check before instanceof in ResourceRequestSetKey

(Contributed by Shweta Yakkali via Daniel Templeton)

Change-Id: I932e29b36f086f7b7c76a250e33b473617ddbda1
This commit is contained in:
Shweta Yakkali 2019-03-18 05:52:48 -07:00 committed by Daniel Templeton
parent 1edf1914ac
commit 0e7e9013d4
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class ResourceRequestSetKey extends SchedulerRequestKey {
@Override
public boolean equals(Object obj) {
if (obj == null || !(obj instanceof SchedulerRequestKey)) {
if (!(obj instanceof SchedulerRequestKey)) {
return false;
}
if (!(obj instanceof ResourceRequestSetKey)) {