You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by te...@apache.org on 2019/03/18 14:08:47 UTC

[hadoop] branch trunk updated: YARN-9340. [Clean-up] Remove NULL check before instanceof in ResourceRequestSetKey (Contributed by Shweta Yakkali via Daniel Templeton)

This is an automated email from the ASF dual-hosted git repository.

templedf pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 0e7e901  YARN-9340. [Clean-up] Remove NULL check before instanceof in ResourceRequestSetKey (Contributed by Shweta Yakkali via Daniel Templeton)
0e7e901 is described below

commit 0e7e9013d4a0785ae22a5a569c3977aeaf7e1900
Author: Shweta Yakkali <sh...@cloudera.com>
AuthorDate: Mon Mar 18 05:52:48 2019 -0700

    YARN-9340. [Clean-up] Remove NULL check before instanceof in ResourceRequestSetKey
    (Contributed by Shweta Yakkali via Daniel Templeton)
    
    Change-Id: I932e29b36f086f7b7c76a250e33b473617ddbda1
---
 .../org/apache/hadoop/yarn/server/scheduler/ResourceRequestSetKey.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/scheduler/ResourceRequestSetKey.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/scheduler/ResourceRequestSetKey.java
index 4db88ef..3816261 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/scheduler/ResourceRequestSetKey.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/scheduler/ResourceRequestSetKey.java
@@ -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)) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org