From: Robert Varga Date: Wed, 4 Jul 2018 14:39:59 +0000 (+0200) Subject: Fix raw type warnings X-Git-Tag: release/fluorine~42 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=6a05502edf0103c317baf93c70ecd6bc28ee59bb;p=netconf.git Fix raw type warnings 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 --- diff --git a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java index a881db4c2f..a7eb35de68 100644 --- a/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java +++ b/netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java @@ -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(); }