From: Robert Varga Date: Wed, 25 May 2016 08:48:49 +0000 (+0200) Subject: Change declared exception X-Git-Tag: release/boron~171 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=0f3e97c63d11379ef36505733aacf3c926d4a085 Change declared exception fixes a sonar warning: we should declare only specific checked exceptions, not Exception. Change-Id: Ibc4baf4db92bcc672284ce6689fbb3747f0efb9e Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java index 876901cbf8..68ac6412e8 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java @@ -208,7 +208,7 @@ public class ActorContext { return future.transform(new Mapper() { @Override - public PrimaryShardInfo checkedApply(Object response) throws Exception { + public PrimaryShardInfo checkedApply(Object response) throws UnknownMessageException { if(response instanceof RemotePrimaryShardFound) { LOG.debug("findPrimaryShardAsync received: {}", response); RemotePrimaryShardFound found = (RemotePrimaryShardFound)response;