Change declared exception 09/39409/3
authorRobert Varga <rovarga@cisco.com>
Wed, 25 May 2016 08:48:49 +0000 (10:48 +0200)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 31 May 2016 07:39:21 +0000 (07:39 +0000)
fixes a sonar warning: we should declare only specific checked
exceptions, not Exception.

Change-Id: Ibc4baf4db92bcc672284ce6689fbb3747f0efb9e
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/utils/ActorContext.java

index 876901cbf8bbec8f1094f73236af8fc6e33e954f..68ac6412e8ad1346f46686e7d5103be5d0824b76 100644 (file)
@@ -208,7 +208,7 @@ public class ActorContext {
 
         return future.transform(new Mapper<Object, PrimaryShardInfo>() {
             @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;