Drop unused exceptions in vpnmanager 34/68534/2
authorStephen Kitt <skitt@redhat.com>
Thu, 22 Feb 2018 18:58:07 +0000 (19:58 +0100)
committerSam Hague <shague@redhat.com>
Fri, 23 Feb 2018 15:20:38 +0000 (15:20 +0000)
Change-Id: Id71667546ef98e8099fe28f83d4f054a9976c866
Signed-off-by: Stephen Kitt <skitt@redhat.com>
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/ArpMonitorStartTask.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/ArpMonitorStopTask.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/SubnetRoutePacketInHandler.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/TunnelInterfaceStateListener.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/VpnInstanceListener.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/intervpnlink/InterVpnLinkNodeAddTask.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/intervpnlink/tasks/InterVpnLinkCreatorTask.java
vpnmanager/impl/src/main/java/org/opendaylight/netvirt/vpnmanager/intervpnlink/tasks/InterVpnLinkRemoverTask.java

index d7d77a3f15c8bb72968057804fd228bc53d25277..9bbaace99ed2e5e9b7c391a2a46783a3d2ad4c2a 100644 (file)
@@ -38,7 +38,7 @@ public class ArpMonitorStartTask implements Callable<List<ListenableFuture<Void>
     }
 
     @Override
-    public List<ListenableFuture<Void>> call() throws Exception {
+    public List<ListenableFuture<Void>> call() {
         AlivenessMonitorUtils.startArpMonitoring(macEntry, arpMonitorProfileId,
             alivenessManager, databroker, interfaceRpc, neutronVpnService,
             interfaceManager);
index 42935a5cc9755d25334c9ea9d313378a6e30330f..6d2c80e29ce109a684840613b8e1e483c03dde3b 100644 (file)
@@ -41,7 +41,7 @@ public class ArpMonitorStopTask implements Callable<List<ListenableFuture<Void>>
     }
 
     @Override
-    public List<ListenableFuture<Void>> call() throws Exception {
+    public List<ListenableFuture<Void>> call() {
         final List<ListenableFuture<Void>> futures = new ArrayList<>();
         java.util.Optional<Long> monitorIdOptional = AlivenessMonitorUtils.getMonitorIdFromInterface(macEntry);
         monitorIdOptional.ifPresent(monitorId -> {
index 1ed56668e47a77e4d5d337d290b7d24d00c83c10..fa5da8580b3e394fef5c73a34ed60d7087a3284f 100644 (file)
@@ -274,7 +274,7 @@ public class SubnetRoutePacketInHandler implements PacketProcessingListener {
 
     private void handlePacketFromTunnelToExternalNetwork(String vpnIdVpnInstanceName, String tunnelInterfaceName,
                         String srcIpStr, byte[] dstIp, long elanTag)
-                                throws InterruptedException, ExecutionException, UnknownHostException {
+                                throws UnknownHostException {
         String routerId = VpnUtil.getAssociatedExternalRouter(dataBroker, srcIpStr);
         if (null == routerId) {
             LOG.debug("The ip is not associated with any external router", srcIpStr);
index 77837d5755edffc95c62e5b3ff59225993c50d45..db3d126fc647f4787b55d7e9317fe1e9eec47d18 100644 (file)
@@ -505,7 +505,7 @@ public class TunnelInterfaceStateListener extends AsyncDataTreeChangeListenerBas
         }
 
         @Override
-        public List<ListenableFuture<Void>> call() throws Exception {
+        public List<ListenableFuture<Void>> call() {
             WriteTransaction writeConfigTxn = dataBroker.newWriteOnlyTransaction();
             WriteTransaction writeOperTxn = dataBroker.newWriteOnlyTransaction();
             List<ListenableFuture<Void>> futures = new ArrayList<>();
index ee8851593c8a6ed972bb65d397a006af2e7362fa..8494196faaf3f1e5a4dff5a86aecb328c496ec45 100644 (file)
@@ -173,7 +173,7 @@ public class VpnInstanceListener extends AsyncDataTreeChangeListenerBase<VpnInst
         }
 
         @Override
-        public List<ListenableFuture<Void>> call() throws Exception {
+        public List<ListenableFuture<Void>> call() {
             // If another renderer(for eg : CSS) needs to be supported, check can be performed here
             // to call the respective helpers.
             WriteTransaction writeConfigTxn = broker.newWriteOnlyTransaction();
index a9b10bf850886c25ad08a7fbc34709e4ef414649..aa33a331f9a15bfef88ff032d6637110cf4f88bb 100755 (executable)
@@ -58,7 +58,7 @@ public class InterVpnLinkNodeAddTask implements Callable<List<ListenableFuture<V
     }
 
     @Override
-    public List<ListenableFuture<Void>> call() throws Exception {
+    public List<ListenableFuture<Void>> call() {
         List<ListenableFuture<Void>> result = new ArrayList<>();
         // check if there is any inter-vpn-link in with erroneous state
         int numberOfDpns = Integer.getInteger(NBR_OF_DPNS_PROPERTY_NAME, 1);
index 7ab384bbffc54529cc739a6c5fbc2b999e32f6ba..1f8863a9b71070cbf0f646aac6f6d2357ff7dea9 100644 (file)
@@ -32,7 +32,7 @@ public class InterVpnLinkCreatorTask implements Callable<List<ListenableFuture<V
     }
 
     @Override
-    public List<ListenableFuture<Void>> call() throws Exception {
+    public List<ListenableFuture<Void>> call() {
         LOG.debug(
             "Persisting InterVpnLink {} with 1stEndpoint=[ vpn={}, ipAddr={} ] and 2ndEndpoint=[ vpn={}, ipAddr={} ]",
             interVpnLinkToPersist.getName(), interVpnLinkToPersist.getFirstEndpoint().getVpnUuid(),
index db7b268ca921f69b35d97dda9462e7c3866b2d7f..32e574c1400e39a1102c1aad7903a3d403f11496 100644 (file)
@@ -33,7 +33,7 @@ public class InterVpnLinkRemoverTask implements Callable<List<ListenableFuture<V
     }
 
     @Override
-    public List<ListenableFuture<Void>> call() throws Exception {
+    public List<ListenableFuture<Void>> call() {
         LOG.debug("Removing InterVpnLink {} from storage", interVpnLinkName);
         WriteTransaction removeTx = dataBroker.newWriteOnlyTransaction();
         removeTx.delete(LogicalDatastoreType.CONFIGURATION, this.interVpnLinkIid);