Remove unneeded SuppressWarnings 14/52214/2
authorRobert Varga <rovarga@cisco.com>
Thu, 23 Feb 2017 14:09:59 +0000 (15:09 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Thu, 23 Feb 2017 16:38:59 +0000 (16:38 +0000)
These are not needed and in fact generate Eclipse warnings
themselves.

Change-Id: I4105c4a8d0fd0094be283a88a92a00415fa54add
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/persisted/Snapshot.java
opendaylight/md-sal/sal-akka-raft/src/test/java/org/opendaylight/controller/cluster/raft/AbstractRaftActorIntegrationTest.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/DatastoreSnapshot.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/persisted/ShardManagerSnapshot.java

index eb5c9e5..1119a32 100644 (file)
@@ -287,7 +287,6 @@ public abstract class AbstractRaftActorIntegrationTest extends AbstractActorTest
             msg -> msg.getToIndex() == expIndex);
     }
 
-    @SuppressWarnings("unchecked")
     protected void verifySnapshot(String prefix, Snapshot snapshot, long lastAppliedTerm,
             long lastAppliedIndex, long lastTerm, long lastIndex)
                     throws Exception {
index fec4408..b37fb4d 100644 (file)
@@ -100,7 +100,6 @@ public class DatastoreSnapshot implements Serializable {
         return shardSnapshots;
     }
 
-    @SuppressWarnings("static-method")
     private Object writeReplace() {
         return new Proxy(this);
     }
@@ -158,7 +157,6 @@ public class DatastoreSnapshot implements Serializable {
             return snapshot;
         }
 
-        @SuppressWarnings("static-method")
         private Object writeReplace() {
             return new Proxy(this);
         }