Fix a few raw type warnings 31/92731/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Sep 2020 22:08:13 +0000 (00:08 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sat, 26 Sep 2020 22:08:13 +0000 (00:08 +0200)
InstanceIdentifier should not be used raw, this fixes trivial
offenders.

Change-Id: I9eff9e23a2f95e40dde757d5980da26e3dd5bd81
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java
southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/ovsdb/transact/TerminationPointCreateCommand.java

index 8b60bb14a7821198cfe050916f405c3e95162040..9e657acdc17d6b96c75d59b4469ea82893b7209e 100644 (file)
@@ -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) {
 
index 24f94575263c5fcccaf4e42f07d18af49303def0..e733846af6c1bec5af7dd1919ede95fcae69af16 100644 (file)
@@ -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<TerminationPoint> terminationPointOptional =
                     state.getBridgeTerminationPoint(terminationPointIid);
             if (!terminationPointOptional.isPresent()) {