From: Robert Varga Date: Thu, 27 Dec 2018 03:46:10 +0000 (+0100) Subject: Switch to spotbugs X-Git-Tag: release/neon~25 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=85c2d1c03f037d9271e205474534d10fc06ebf13 Switch to spotbugs Rather than using findbugs, use spotbugs, which works with Java 9. Change-Id: I8807b2dc34fdb4ddfd476a2a0ed9cf0db2e044cd Signed-off-by: Robert Varga --- diff --git a/opendaylight/blueprint/pom.xml b/opendaylight/blueprint/pom.xml index af5bc7be4e..956855c7fc 100644 --- a/opendaylight/blueprint/pom.xml +++ b/opendaylight/blueprint/pom.xml @@ -147,8 +147,8 @@ - org.codehaus.mojo - findbugs-maven-plugin + com.github.spotbugs + spotbugs-maven-plugin true diff --git a/opendaylight/md-sal/parent/pom.xml b/opendaylight/md-sal/parent/pom.xml index e5c01d6254..5b7ada967d 100644 --- a/opendaylight/md-sal/parent/pom.xml +++ b/opendaylight/md-sal/parent/pom.xml @@ -53,15 +53,8 @@ - org.codehaus.mojo - findbugs-maven-plugin - - - org.opendaylight.odlparent - findbugs - 4.0.5 - - + com.github.spotbugs + spotbugs-maven-plugin true diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java index 00ab31d9c8..ae711df74a 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/messaging/MessageSlice.java @@ -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);