Do not declare unneeded Exception throw 27/28727/5
authorRobert Varga <rovarga@cisco.com>
Fri, 23 Oct 2015 10:42:05 +0000 (12:42 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 26 Oct 2015 17:23:36 +0000 (18:23 +0100)
Fixes sonar warnings

Change-Id: I31ab95c75cf30b33c9025d6f6e4662ccc5df7a47
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java

index 2dd31657549b1d183184af52a9d27da04db26586..106bbe1549c4c440200ce986695c162fb71dcf3b 100644 (file)
@@ -379,7 +379,7 @@ public abstract class RaftActor extends AbstractUntypedPersistentActor {
 
         replicatedLog().appendAndPersist(replicatedLogEntry, new Procedure<ReplicatedLogEntry>() {
             @Override
-            public void apply(ReplicatedLogEntry replicatedLogEntry) throws Exception {
+            public void apply(ReplicatedLogEntry replicatedLogEntry) {
                 if (!hasFollowers()){
                     // Increment the Commit Index and the Last Applied values
                     raftContext.setCommitIndex(replicatedLogEntry.getIndex());
index edf6f57760923d60e12e7aff55ad83ee68a2c852..dabad41aff97b81ba83dcdf1626dca26e987a1b1 100644 (file)
@@ -322,7 +322,7 @@ public class Shard extends RaftActor {
         return ModificationType.UNMODIFIED.equals(candidate.getRootNode().getModificationType());
     }
 
-    void continueCommit(final CohortEntry cohortEntry) throws Exception {
+    void continueCommit(final CohortEntry cohortEntry) {
         final DataTreeCandidate candidate = cohortEntry.getCandidate();
 
         // If we do not have any followers and we are not using persistence