Switch to spotbugs 73/79073/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 27 Dec 2018 03:46:10 +0000 (04:46 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 3 Jan 2019 07:53:30 +0000 (07:53 +0000)
Rather than using findbugs, use spotbugs, which works with Java 9.

Change-Id: I8807b2dc34fdb4ddfd476a2a0ed9cf0db2e044cd
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/blueprint/pom.xml
opendaylight/md-sal/parent/pom.xml
opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java

index af5bc7be4e1bda7a800b371dd179d66cb77bb54d..956855c7fc18affabc18d95577e142cc5b61055f 100644 (file)
         </configuration>
       </plugin>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>findbugs-maven-plugin</artifactId>
+        <groupId>com.github.spotbugs</groupId>
+        <artifactId>spotbugs-maven-plugin</artifactId>
         <configuration>
           <failOnError>true</failOnError>
         </configuration>
index e5c01d625456b35ad5c618c5a1427e524deccae1..5b7ada967d57a6e511c4958363dde58f2648f3fb 100644 (file)
         </configuration>
       </plugin>
       <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>findbugs-maven-plugin</artifactId>
-        <dependencies>
-          <dependency>
-            <groupId>org.opendaylight.odlparent</groupId>
-            <artifactId>findbugs</artifactId>
-            <version>4.0.5</version>
-          </dependency>
-        </dependencies>
+        <groupId>com.github.spotbugs</groupId>
+        <artifactId>spotbugs-maven-plugin</artifactId>
         <configuration>
           <failOnError>true</failOnError>
         </configuration>
index 00ab31d9c85d73495a3d35dec925ee0601d65cb1..ae711df74a88ceb5e9cfe20fdf4428c7d8efa70d 100644 (file)
@@ -34,7 +34,7 @@ public class MessageSlice implements Serializable {
     private final int lastSliceHashCode;
     private final ActorRef replyTo;
 
-    public MessageSlice(Identifier identifier, byte[] data, int sliceIndex, int totalSlices, int lastSliceHashCode,
+    MessageSlice(Identifier identifier, byte[] data, int sliceIndex, int totalSlices, int lastSliceHashCode,
             final ActorRef replyTo) {
         this.identifier = Preconditions.checkNotNull(identifier);
         this.data = Preconditions.checkNotNull(data);