From 6a05502edf0103c317baf93c70ecd6bc28ee59bb Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 4 Jul 2018 16:39:59 +0200 Subject: [PATCH] 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 --- .../topology/singleton/impl/utils/NetconfTopologyUtils.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } -- 2.36.6