Cleanup warnings
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / test / java / org / opendaylight / controller / cluster / raft / persisted / SnapshotTest.java
index 19f0ec132b35fac68af6a9ebf3fb4c00626dd149..9f1f924252da9a9fd624973944f47ac42bb573b7 100644 (file)
@@ -25,13 +25,13 @@ import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
 public class SnapshotTest {
 
     @Test
-    public void testSerialization() throws Exception {
+    public void testSerialization() {
         testSerialization(new byte[]{1, 2, 3, 4, 5, 6, 7}, Arrays.asList(
                 new SimpleReplicatedLogEntry(6, 2, new MockPayload("payload"))));
         testSerialization(new byte[]{1, 2, 3, 4, 5, 6, 7, 8, 9}, Collections.emptyList());
     }
 
-    private void testSerialization(byte[] state, List<ReplicatedLogEntry> unapplied) throws Exception {
+    private static void testSerialization(final byte[] state, final List<ReplicatedLogEntry> unapplied) {
         long lastIndex = 6;
         long lastTerm = 2;
         long lastAppliedIndex = 5;