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 af5bc7b..956855c 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 e5c01d6..5b7ada9 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 00ab31d..ae711df 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);

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.