Fix a few compilation warnings 78/95478/1
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 30 Mar 2021 10:26:16 +0000 (12:26 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Tue, 30 Mar 2021 10:28:40 +0000 (10:28 +0000)
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I1eeaa45ddce239db0e31a703ef0ed27f8798575e

common/src/main/java/org/opendaylight/transportpce/common/openroadminterfaces/OpenRoadmInterfaces.java
networkmodel/src/test/java/org/opendaylight/transportpce/networkmodel/NetConfTopologyListenerTest.java

index 1c5622d88af2ba87aa5c4396c6c0332a34d4fa97..8d4cd73bd3af30df7ef23482380b3959d471140a 100644 (file)
@@ -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 <T> specified type of object
      * @param nodeId node ID
      * @param ifBuilder Builder object containing the data to post
      * @throws OpenRoadmInterfaceException OpenRoadm Interface Exception
index 60bf1e2e3a8670a1d2662cd277eaa743448bd2e4..4dd5446fe71011ffe92440fa2134c4c32897e219 100644 (file)
@@ -74,10 +74,10 @@ public class NetConfTopologyListenerTest {
     @Test
     public void testOnDataTreeChanged() {
 
-        final DataObjectModification<Node> newNode = mock(DataObjectModification.class);
+        @SuppressWarnings("unchecked") final DataObjectModification<Node> newNode = mock(DataObjectModification.class);
         when(newNode.getModificationType()).thenReturn(DataObjectModification.ModificationType.WRITE);
         final Collection<DataTreeModification<Node>> changes = new HashSet<>();
-        final DataTreeModification<Node> ch = mock(DataTreeModification.class);
+        @SuppressWarnings("unchecked") final DataTreeModification<Node> ch = mock(DataTreeModification.class);
         changes.add(ch);
         when(ch.getRootNode()).thenReturn(newNode);