disable PMD/CPD checks in 2 portmapping classes 44/94844/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Wed, 27 Jan 2021 15:07:11 +0000 (16:07 +0100)
committerguillaume.lambert <guillaume.lambert@orange.com>
Mon, 8 Feb 2021 14:37:25 +0000 (15:37 +0100)
The issue is already reported by a FIXME comment in the code.
The code is effectively similar but the types are different
since they are related to 3 different OpenROADM versions.
Using generics in this case is not helpful.

JIRA: TRNSPRTPCE-284
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Ib173fc1f701b152f0028740f654bae959ce89725

common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion121.java
common/src/main/java/org/opendaylight/transportpce/common/mapping/PortMappingVersion710.java

index 4fe79230c5022d972552e93125dfe63cd1b4c62d..aeb50d8ab9b00e9a9c238a9c1b65ae007000fdd5 100644 (file)
@@ -81,6 +81,7 @@ import org.slf4j.LoggerFactory;
 
 // FIXME: many common pieces of code between PortMapping Versions 121 and 221 and 710
 // some mutualization would be helpful
+@SuppressWarnings("CPD-START")
 public class PortMappingVersion121 {
 
     private static final Logger LOG = LoggerFactory.getLogger(PortMappingVersion121.class);
index ddd698a6c422efc98a43ee9d750a01fb768252b5..b0abc79207786ac956658de44d226487c9e80508 100644 (file)
@@ -97,6 +97,7 @@ import org.slf4j.LoggerFactory;
 
 // FIXME: many common pieces of code between PortMapping Versions 121 and 221 and 710
 // some mutualization would be helpful
+@SuppressWarnings("CPD-START")
 public class PortMappingVersion710 {
     private static final Logger LOG = LoggerFactory.getLogger(PortMappingVersion710.class);
     private static final Map<Direction, String> SUFFIX;