Enforce SpotBugs in inventory build process 06/89606/6
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 5 May 2020 14:18:04 +0000 (16:18 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Wed, 27 May 2020 07:46:34 +0000 (07:46 +0000)
by annotating remaining warnings with a @SuppressFBwarnings decorator

JIRA: TRNSPRTPCE-207 TRNSPRTPCE-241 TRNSPRTPCE-265 TRNSPRTPCE-272
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iabd129118abf6c47f97bd63e83363c462f776456

inventory/pom.xml
inventory/src/main/java/org/opendaylight/transportpce/inventory/INode.java
inventory/src/main/java/org/opendaylight/transportpce/inventory/INode121.java
inventory/src/main/java/org/opendaylight/transportpce/inventory/INode221.java

index 5fa07070d6461f446421faa0d81b81c267f2b24c..0a4dcb3e81cdb9360c58b0df70d2049dfb7d473b 100644 (file)
       </dependency>
     </dependencies>
 
-<!-- checkstyle and spotbugds enforced by odlparent since Magnesium -->
-  <properties>
-    <!-- odlparent.checkstyle.enforce>false</odlparent.checkstyle.enforce -->
-    <odlparent.spotbugs.enforce>false</odlparent.spotbugs.enforce>
-  </properties>
-
 </project>
index 2d8bdd56cb7bee12de6d9876b28d6874b331c4f1..cdcfc621ef6d5e2bb71cc8796a702240ad15d7e7 100644 (file)
@@ -17,6 +17,9 @@ import org.opendaylight.transportpce.common.device.DeviceTransactionManager;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
+    value = "SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING",
+    justification = "TODO review the SQL statement generation process")
 public class INode {
     private static final Logger LOG = LoggerFactory.getLogger(INode.class);
 
index 5fd8b089cc274626978fdf750f69eee5fb08cbfa..04e408cf42dc68ecd83dd54d66c55d7f05c0a2dd 100644 (file)
@@ -58,6 +58,9 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
+    value = "SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING",
+    justification = "TODO review the SQL statement generation process")
 public class INode121 {
 
     private static final Logger LOG = LoggerFactory.getLogger(INode121.class);
index 2aff959d86af460abee65d71c69dc7e9657b8dc3..22033841509b186dc2f4cfb2232484102656fec5 100644 (file)
@@ -55,7 +55,9 @@ import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-
+@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(
+    value = "SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING",
+    justification = "TODO review the SQL statement generation process")
 public class INode221 {
     private static final Logger LOG = LoggerFactory.getLogger(INode221.class);