From 0f3e97c63d11379ef36505733aacf3c926d4a085 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Wed, 25 May 2016 10:48:49 +0200 Subject: [PATCH] Change declared exception fixes a sonar warning: we should declare only specific checked exceptions, not Exception. Change-Id: Ibc4baf4db92bcc672284ce6689fbb3747f0efb9e Signed-off-by: Robert Varga --- .../controller/cluster/datastore/utils/ActorContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.36.6