Fix raw type warnings 50/73750/3
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Jul 2018 14:39:59 +0000 (16:39 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 4 Jul 2018 15:08:00 +0000 (17:08 +0200)
Using IdentifiableItem as a raw type does not make sense here,
add type qualifiers and ditch the warnings.

Change-Id: Ifcbd41b53f0c5989e6fad9fd35ce66e115996224
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java

index a881db4c2f6d31754d308c29e4b75bfcd8711c88..a7eb35de687265b349abc8355cc1281e87bee712 100644 (file)
@@ -227,9 +227,8 @@ public final class NetconfTopologyUtils {
     }
 
     public static NodeId getNodeId(final InstanceIdentifier.PathArgument pathArgument) {
-        if (pathArgument instanceof InstanceIdentifier.IdentifiableItem<?, ?>) {
-
-            final Identifier key = ((InstanceIdentifier.IdentifiableItem) pathArgument).getKey();
+        if (pathArgument instanceof InstanceIdentifier.IdentifiableItem) {
+            final Identifier<?> key = ((InstanceIdentifier.IdentifiableItem<?, ?>) pathArgument).getKey();
             if (key instanceof NodeKey) {
                 return ((NodeKey) key).getNodeId();
             }