From 2ff6b92179b79cd5b53be709f61c09e90272b926 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Sun, 27 Sep 2020 00:08:13 +0200 Subject: [PATCH] Fix a few raw type warnings InstanceIdentifier should not be used raw, this fixes trivial offenders. Change-Id: I9eff9e23a2f95e40dde757d5980da26e3dd5bd81 Signed-off-by: Robert Varga --- .../opendaylight/ovsdb/southbound/OvsdbConnectionManager.java | 2 +- .../ovsdb/transact/TerminationPointCreateCommand.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java index 8b60bb14a..9e657acdc 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java @@ -217,7 +217,7 @@ public class OvsdbConnectionManager implements OvsdbConnectionListener, AutoClos private void deleteOperNodeAndReleaseOwnership(final OvsdbConnectionInstance ovsdbConnectionInstance) { ovsdbConnectionInstance.setHasDeviceOwnership(false); - final InstanceIdentifier nodeIid = ovsdbConnectionInstance.getInstanceIdentifier(); + final InstanceIdentifier nodeIid = ovsdbConnectionInstance.getInstanceIdentifier(); //remove the node from oper only if it has ownership txInvoker.invoke(new OvsdbNodeRemoveCommand(ovsdbConnectionInstance, null, null) { diff --git a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java index 24f945752..e733846af 100644 --- a/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java +++ b/southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java @@ -87,7 +87,7 @@ public class TerminationPointCreateCommand implements TransactCommand { OvsdbTerminationPointAugmentation terminationPoint = entry.getValue(); LOG.debug("Received request to create termination point {}", terminationPoint.getName()); - InstanceIdentifier terminationPointIid = entry.getKey(); + InstanceIdentifier terminationPointIid = entry.getKey(); Optional terminationPointOptional = state.getBridgeTerminationPoint(terminationPointIid); if (!terminationPointOptional.isPresent()) { -- 2.36.6