Update SpotBugs dependency 29/139229/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 18 Oct 2024 10:19:04 +0000 (11:19 +0100)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 18 Oct 2024 10:19:04 +0000 (11:19 +0100)
- update spotbugs to 4.8.6
- remove old findbugs dependency (spotbugs replaces findbugs)
- remove an unused SupressFBWarnings

Issue-ID: CPS-2458
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: If9d5571ae4293a2653a117a988414af2452647c0

cps-dependencies/pom.xml
cps-ncmp-service/pom.xml
cps-ncmp-service/src/main/java/org/onap/cps/ncmp/impl/utils/http/WebClientConfiguration.java

index ab14537..a95e5f4 100644 (file)
             <dependency>
                 <groupId>com.github.spotbugs</groupId>
                 <artifactId>spotbugs-annotations</artifactId>
-                <version>3.1.3</version>
-            </dependency>
-            <dependency>
-                <groupId>com.google.code.findbugs</groupId>
-                <artifactId>annotations</artifactId>
-                <version>3.0.1</version>
+                <version>4.8.6</version>
             </dependency>
             <dependency>
                 <groupId>com.google.code.gson</groupId>
index 9f7bb08..fda4221 100644 (file)
             <groupId>${project.groupId}</groupId>
             <artifactId>cps-path-parser</artifactId>
         </dependency>
-        <dependency>
-            <groupId>com.google.code.findbugs</groupId>
-            <artifactId>annotations</artifactId>
-        </dependency>
         <dependency>
             <groupId>com.hazelcast</groupId>
             <artifactId>hazelcast-spring</artifactId>
index d8e8350..8ae942e 100644 (file)
@@ -20,7 +20,6 @@
 
 package org.onap.cps.ncmp.impl.utils.http;
 
-import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
 import io.netty.channel.ChannelOption;
 import io.netty.handler.timeout.ReadTimeoutHandler;
 import io.netty.handler.timeout.WriteTimeoutHandler;
@@ -63,7 +62,6 @@ public class WebClientConfiguration {
                 .compress(true);
     }
 
-    @SuppressFBWarnings("BC_UNCONFIRMED_CAST_OF_RETURN_VALUE")
     private static ConnectionProvider getConnectionProvider(final ServiceConfig serviceConfig) {
         return ConnectionProvider.builder(serviceConfig.getConnectionProviderName())
                 .maxConnections(serviceConfig.getMaximumConnectionsTotal())