From: guillaume.lambert Date: Tue, 30 Mar 2021 10:26:16 +0000 (+0200) Subject: Fix a few compilation warnings X-Git-Tag: 3.0.0~2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=transportpce.git;a=commitdiff_plain;h=d59a2be4fa232896b0fe7fd9401be80e0556cc48 Fix a few compilation warnings Signed-off-by: guillaume.lambert Change-Id: I1eeaa45ddce239db0e31a703ef0ed27f8798575e --- diff --git a/common/src/main/java/org/opendaylight/transportpce/common/openroadminterfaces/OpenRoadmInterfaces.java b/common/src/main/java/org/opendaylight/transportpce/common/openroadminterfaces/OpenRoadmInterfaces.java index 1c5622d88..8d4cd73bd 100644 --- a/common/src/main/java/org/opendaylight/transportpce/common/openroadminterfaces/OpenRoadmInterfaces.java +++ b/common/src/main/java/org/opendaylight/transportpce/common/openroadminterfaces/OpenRoadmInterfaces.java @@ -85,6 +85,7 @@ public interface OpenRoadmInterfaces { * This methods does an edit-config operation on the openROADM device in * order to create the OTN given interface. * + * @param specified type of object * @param nodeId node ID * @param ifBuilder Builder object containing the data to post * @throws OpenRoadmInterfaceException OpenRoadm Interface Exception diff --git a/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java b/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java index 60bf1e2e3..4dd5446fe 100644 --- a/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java +++ b/networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java @@ -74,10 +74,10 @@ public class NetConfTopologyListenerTest { @Test public void testOnDataTreeChanged() { - final DataObjectModification newNode = mock(DataObjectModification.class); + @SuppressWarnings("unchecked") final DataObjectModification newNode = mock(DataObjectModification.class); when(newNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE); final Collection> changes = new HashSet<>(); - final DataTreeModification ch = mock(DataTreeModification.class); + @SuppressWarnings("unchecked") final DataTreeModification ch = mock(DataTreeModification.class); changes.add(ch); when(ch.getRootNode()).thenReturn(newNode);