This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit e2e279e6859b6a3c7774ea87d43b8133f7225a2e
Author: Otavio Rodolfo Piske <angusyo...@gmail.com>
AuthorDate: Fri Apr 8 15:55:32 2022 +0200

    CAMEL-17763: cleanup unused exceptions in camel-zookeeper-master
---
 .../apache/camel/component/zookeepermaster/CuratorFactoryBean.java  | 4 ++--
 .../apache/camel/component/zookeepermaster/MasterEndpointTest.java  | 2 +-
 .../zookeepermaster/group/internal/ZooKeeperGroupTest.java          | 2 +-
 .../zookeepermaster/integration/MasterEndpointFailoverIT.java       | 6 +++---
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/CuratorFactoryBean.java
 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/CuratorFactoryBean.java
index 5ce79fb4ac9..28ee69a482e 100644
--- 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/CuratorFactoryBean.java
+++ 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/CuratorFactoryBean.java
@@ -54,7 +54,7 @@ public class CuratorFactoryBean implements 
FactoryBean<CuratorFramework>, Dispos
     // FactoryBean interface
     //-------------------------------------------------------------------------
     @Override
-    public CuratorFramework getObject() throws Exception {
+    public CuratorFramework getObject() {
         LOG.debug("Connecting to ZooKeeper on " + connectString);
 
         CuratorFrameworkFactory.Builder builder = 
CuratorFrameworkFactory.builder()
@@ -79,7 +79,7 @@ public class CuratorFactoryBean implements 
FactoryBean<CuratorFramework>, Dispos
     }
 
     @Override
-    public void destroy() throws Exception {
+    public void destroy() {
         if (curator != null) {
             // Note we cannot use zkClient.close()
             // since you cannot currently close a client which is not connected
diff --git 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/MasterEndpointTest.java
 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/MasterEndpointTest.java
index 119f73f1255..89ef557da56 100644
--- 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/MasterEndpointTest.java
+++ 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/MasterEndpointTest.java
@@ -69,7 +69,7 @@ public class MasterEndpointTest {
     }
 
     @Test
-    public void testRawPropertiesOnChild() throws Exception {
+    public void testRawPropertiesOnChild() {
         final String uri
                 = 
"zookeeper-master://name:sftp://myhost/inbox?password=RAW(_BEFORE_AMPERSAND_&_AFTER_AMPERSAND_)&username=jdoe";
 
diff --git 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/internal/ZooKeeperGroupTest.java
 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/internal/ZooKeeperGroupTest.java
index b416872476c..096805c3965 100644
--- 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/internal/ZooKeeperGroupTest.java
+++ 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/group/internal/ZooKeeperGroupTest.java
@@ -44,7 +44,7 @@ public class ZooKeeperGroupTest {
     private CuratorFramework curator;
     private ZooKeeperGroup<NodeState> group;
 
-    private int findFreePort() throws Exception {
+    private int findFreePort() {
         return AvailablePortFinder.getNextAvailable();
     }
 
diff --git 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/integration/MasterEndpointFailoverIT.java
 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/integration/MasterEndpointFailoverIT.java
index f22c86776c0..2b66c128993 100644
--- 
a/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/integration/MasterEndpointFailoverIT.java
+++ 
b/components/camel-zookeeper-master/src/test/java/org/apache/camel/component/zookeepermaster/integration/MasterEndpointFailoverIT.java
@@ -64,7 +64,7 @@ public class MasterEndpointFailoverIT {
         // Add the vm:start endpoint to avoid the NPE before starting the 
consumerContext1
         producerContext.addRoutes(new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:start").to("vm:start");
             }
         });
@@ -74,7 +74,7 @@ public class MasterEndpointFailoverIT {
         consumerContext1 = new DefaultCamelContext(registry);
         consumerContext1.addRoutes(new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("zookeeper-master:MasterEndpointFailoverTest:vm:start")
                         .to("log:result1")
                         .to("mock:result1");
@@ -83,7 +83,7 @@ public class MasterEndpointFailoverIT {
         consumerContext2 = new DefaultCamelContext(registry);
         consumerContext2.addRoutes(new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("zookeeper-master:MasterEndpointFailoverTest:vm:start")
                         .to("log:result2")
                         .to("mock:result2");

Reply via email to