BUG-869: remove unneeded null check 04/17504/4
authorRobert Varga <rovarga@cisco.com>
Tue, 31 Mar 2015 21:14:43 +0000 (23:14 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 1 Apr 2015 15:23:34 +0000 (17:23 +0200)
Instanceof checks for null implicitly, no need to be explicit.

Change-Id: I2f378567c34fa7ba7adcf8a6c369c2aa6221badf
Signed-off-by: Robert Varga <rovarga@cisco.com>
yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/SchemaContextUtil.java

index 20fe4ceb3a5401687394ef46377510441eaa9862..071e32db8752d28947571ce23a3cae1d87c4b57c 100644 (file)
@@ -682,7 +682,7 @@ public final class SchemaContextUtil {
             nodeType = ((LeafListSchemaNode) schemaNode).getType();
         }
 
-        if (nodeType != null && nodeType instanceof ExtendedType) {
+        if (nodeType instanceof ExtendedType) {
             while (nodeType.getBaseType() instanceof ExtendedType) {
                 nodeType = nodeType.getBaseType();
             }