From 9402730d96f9633d2165de99fad65768d8537a9a Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 23 Oct 2015 12:42:05 +0200 Subject: [PATCH] Do not declare unneeded Exception throw Fixes sonar warnings Change-Id: I31ab95c75cf30b33c9025d6f6e4662ccc5df7a47 Signed-off-by: Robert Varga --- .../org/opendaylight/controller/cluster/raft/RaftActor.java | 2 +- .../org/opendaylight/controller/cluster/datastore/Shard.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java index 2dd3165754..106bbe1549 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActor.java @@ -379,7 +379,7 @@ public abstract class RaftActor extends AbstractUntypedPersistentActor { replicatedLog().appendAndPersist(replicatedLogEntry, new Procedure() { @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()); diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java index edf6f57760..dabad41aff 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/Shard.java @@ -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 -- 2.36.6