Eliminate InstanceIdentifier.toInstance() reference 14/72314/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 25 May 2018 15:01:58 +0000 (17:01 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 25 May 2018 15:01:58 +0000 (17:01 +0200)
This method has been long-deprecated, do not use it.

Change-Id: I2bec3b7a70025e4c64f9a89d4d95c6723558f6a3
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
applications/topology-lldp-discovery/src/main/java/org/opendaylight/openflowplugin/applications/topology/lldp/utils/LLDPDiscoveryUtils.java

index f7d2e475dcf910865e1b3189993e4ad9ef6bc335..39288e64ba51ac8dc059c0e1754a9609bccbd9ce 100644 (file)
@@ -130,7 +130,7 @@ public final class LLDPDiscoveryUtils {
                 InstanceIdentifier<NodeConnector> srcInstanceId = InstanceIdentifier.builder(Nodes.class)
                         .child(Node.class, new NodeKey(srcNodeId))
                         .child(NodeConnector.class, new NodeConnectorKey(srcNodeConnectorId))
-                        .toInstance();
+                        .build();
                 nodeConnectorRef = new NodeConnectorRef(srcInstanceId);
             } catch (Exception e) {
                 LOG.debug("Caught exception while parsing out lldp optional and custom fields", e);