From: Robert Varga Date: Sat, 26 Sep 2020 22:08:13 +0000 (+0200) Subject: Fix a few raw type warnings X-Git-Tag: release/silicon~29 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=2ff6b92179b79cd5b53be709f61c09e90272b926;p=ovsdb.git Fix a few raw type warnings InstanceIdentifier should not be used raw, this fixes trivial offenders. Change-Id: I9eff9e23a2f95e40dde757d5980da26e3dd5bd81 Signed-off-by: Robert Varga --- 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()) {