You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by or...@apache.org on 2022/03/13 16:16:41 UTC

[camel] branch main updated (5d7b824 -> 6e88510)

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

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


    from 5d7b824  CAMEL-17763: cleaned up unused exceptions in camel-bindy
     new 26383ae  CAMEL-17763: cleaned up unused exceptions in camel-atmosphere-websocket
     new 9e29e76  CAMEL-17763: cleaned up unused exceptions in camel-atom
     new a22fcfa  CAMEL-17763: cleaned up unused exceptions in camel-attachments
     new f426025  CAMEL-17763: cleaned up unused exceptions in camel-avro
     new 16827cf  CAMEL-17763: cleaned up unused exceptions in camel-avro-rpc-component
     new 5d35d30  CAMEL-17763: cleaned up unused exceptions in camel-barcode
     new a5acc43  CAMEL-17763: cleaned up unused exceptions in camel-bean
     new b811028  CAMEL-17763: cleaned up unused exceptions in camel-bean-validator
     new 6e88510  CAMEL-17763: cleaned up unused exceptions in camel-beanstack

The 9 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../apache/camel/component/atmosphere/websocket/TestClient.java   | 2 +-
 .../java/org/apache/camel/component/atom/JettyTestServer.java     | 2 +-
 .../org/apache/camel/attachment/BeanMethodWithExchangeTest.java   | 2 +-
 .../src/test/java/org/apache/camel/attachment/WireTapTest.java    | 8 ++++----
 .../java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java     | 4 ++--
 .../component/avro/processors/ReflectionInOnlyProcessor.java      | 2 +-
 .../camel/component/avro/processors/ReflectionInOutProcessor.java | 2 +-
 .../camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java   | 4 ++--
 .../camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java       | 8 ++++----
 .../org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java | 4 ++--
 .../bean/validator/CustomValidationProviderResolverTest.java      | 4 ++--
 .../test/java/org/apache/camel/component/bean/BeanInfoTest.java   | 2 +-
 .../java/org/apache/camel/component/beanstalk/EndpointTest.java   | 2 +-
 .../java/org/apache/camel/component/beanstalk/ProducerTest.java   | 2 +-
 .../camel/component/beanstalk/TestExchangeCopyProcessor.java      | 2 +-
 .../beanstalk/integration/BuryProducerIntegrationIT.java          | 2 +-
 .../beanstalk/integration/DeleteProducerIntegrationIT.java        | 2 +-
 .../component/beanstalk/integration/PutProducerIntegrationIT.java | 6 +++---
 .../beanstalk/integration/ReleaseProducerIntegrationIT.java       | 2 +-
 .../beanstalk/integration/TouchProducerIntegrationIT.java         | 2 +-
 20 files changed, 32 insertions(+), 32 deletions(-)

[camel] 03/09: CAMEL-17763: cleaned up unused exceptions in camel-attachments

Posted by or...@apache.org.
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 a22fcfa7d554f40e8a64c71d77a6e19f20df7e9b
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:35:19 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-attachments
---
 .../org/apache/camel/attachment/BeanMethodWithExchangeTest.java   | 2 +-
 .../src/test/java/org/apache/camel/attachment/WireTapTest.java    | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/components/camel-attachments/src/test/java/org/apache/camel/attachment/BeanMethodWithExchangeTest.java b/components/camel-attachments/src/test/java/org/apache/camel/attachment/BeanMethodWithExchangeTest.java
index 7c8f1b0..c58cdbb 100644
--- a/components/camel-attachments/src/test/java/org/apache/camel/attachment/BeanMethodWithExchangeTest.java
+++ b/components/camel-attachments/src/test/java/org/apache/camel/attachment/BeanMethodWithExchangeTest.java
@@ -56,7 +56,7 @@ public class BeanMethodWithExchangeTest extends CamelTestSupport {
             public void configure() {
                 from("direct:start1").process(new Processor() {
                     @Override
-                    public void process(Exchange exchange) throws Exception {
+                    public void process(Exchange exchange) {
                         // remove the old attachment
                         exchange.getMessage(AttachmentMessage.class).removeAttachment("attachment");
                         // and add 2 new attachments
diff --git a/components/camel-attachments/src/test/java/org/apache/camel/attachment/WireTapTest.java b/components/camel-attachments/src/test/java/org/apache/camel/attachment/WireTapTest.java
index 19271ae..b223b30 100644
--- a/components/camel-attachments/src/test/java/org/apache/camel/attachment/WireTapTest.java
+++ b/components/camel-attachments/src/test/java/org/apache/camel/attachment/WireTapTest.java
@@ -61,14 +61,14 @@ public class WireTapTest extends CamelTestSupport {
     }
 
     @Override
-    protected RoutesBuilder createRouteBuilder() throws Exception {
+    protected RoutesBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:start")
                         .process(new Processor() {
                             @Override
-                            public void process(Exchange exchange) throws Exception {
+                            public void process(Exchange exchange) {
                                 AttachmentMessage am = exchange.getMessage(AttachmentMessage.class);
                                 am.addAttachment("message1.xml",
                                         new DataHandler(new FileDataSource(new File("src/test/data/message1.xml"))));
@@ -80,7 +80,7 @@ public class WireTapTest extends CamelTestSupport {
                 from("direct:tap")
                         .process(new Processor() {
                             @Override
-                            public void process(Exchange exchange) throws Exception {
+                            public void process(Exchange exchange) {
                                 AttachmentMessage am = exchange.getMessage(AttachmentMessage.class);
                                 am.addAttachmentObject("message2.xml",
                                         new DefaultAttachment(new FileDataSource(new File("src/test/data/message2.xml"))));

[camel] 08/09: CAMEL-17763: cleaned up unused exceptions in camel-bean-validator

Posted by or...@apache.org.
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 b811028d9cd82e97ba670cdf2c5c61703701dded
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:39:27 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-bean-validator
---
 .../bean/validator/CustomValidationProviderResolverTest.java          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/CustomValidationProviderResolverTest.java b/components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/CustomValidationProviderResolverTest.java
index c0a9961..ce0c206 100644
--- a/components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/CustomValidationProviderResolverTest.java
+++ b/components/camel-bean-validator/src/test/java/org/apache/camel/component/bean/validator/CustomValidationProviderResolverTest.java
@@ -48,10 +48,10 @@ public class CustomValidationProviderResolverTest extends CamelTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 from("direct:test").to(
                         "bean-validator://ValidationProviderResolverTest?validationProviderResolver=#myValidationProviderResolver");
             }

[camel] 04/09: CAMEL-17763: cleaned up unused exceptions in camel-avro

Posted by or...@apache.org.
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 f4260252aa33643b7ac7c647a77ae19d19b2d523
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:35:59 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-avro
---
 .../camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java   | 4 ++--
 .../camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java       | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java b/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java
index 01c1942..2bd8345 100644
--- a/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java
+++ b/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroGenericMarshaAndUnmarshaTest.java
@@ -66,10 +66,10 @@ public class AvroGenericMarshaAndUnmarshaTest extends CamelTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 AvroDataFormat format = new AvroDataFormat(schema);
 
                 from("direct:in").marshal(format);
diff --git a/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java b/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java
index f930601..3557364 100644
--- a/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java
+++ b/components/camel-avro/src/test/java/org/apache/camel/dataformat/avro/AvroMarshalAndUnmarshallTest.java
@@ -44,11 +44,11 @@ public class AvroMarshalAndUnmarshallTest extends CamelTestSupport {
     }
 
     @Test
-    public void testMarshalAndUnmarshalWithDSL3() throws Exception {
+    public void testMarshalAndUnmarshalWithDSL3() {
         try {
             context.addRoutes(new RouteBuilder() {
                 @Override
-                public void configure() throws Exception {
+                public void configure() {
                     from("direct:unmarshalC").unmarshal().avro(new CamelException("wrong schema"))
                             .to("mock:reverse");
                 }
@@ -78,10 +78,10 @@ public class AvroMarshalAndUnmarshallTest extends CamelTestSupport {
     }
 
     @Override
-    protected RouteBuilder createRouteBuilder() throws Exception {
+    protected RouteBuilder createRouteBuilder() {
         return new RouteBuilder() {
             @Override
-            public void configure() throws Exception {
+            public void configure() {
                 AvroDataFormat format = new AvroDataFormat(Value.SCHEMA$);
 
                 from("direct:in").marshal(format);

[camel] 09/09: CAMEL-17763: cleaned up unused exceptions in camel-beanstack

Posted by or...@apache.org.
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 6e88510d730be638f89d79f985c9e091e620ba95
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:40:03 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-beanstack
---
 .../java/org/apache/camel/component/beanstalk/EndpointTest.java     | 2 +-
 .../java/org/apache/camel/component/beanstalk/ProducerTest.java     | 2 +-
 .../apache/camel/component/beanstalk/TestExchangeCopyProcessor.java | 2 +-
 .../component/beanstalk/integration/BuryProducerIntegrationIT.java  | 2 +-
 .../beanstalk/integration/DeleteProducerIntegrationIT.java          | 2 +-
 .../component/beanstalk/integration/PutProducerIntegrationIT.java   | 6 +++---
 .../beanstalk/integration/ReleaseProducerIntegrationIT.java         | 2 +-
 .../component/beanstalk/integration/TouchProducerIntegrationIT.java | 2 +-
 8 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java
index 45e3026..c48d4fa 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/EndpointTest.java
@@ -30,7 +30,7 @@ public class EndpointTest {
     CamelContext context;
 
     @BeforeEach
-    public void setUp() throws Exception {
+    public void setUp() {
         context = new DefaultCamelContext(false);
         context.disableJMX();
         context.start();
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java
index 4ef97aa..bb913fe 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/ProducerTest.java
@@ -380,7 +380,7 @@ public class ProducerTest extends BeanstalkMockTestSupport {
     }
 
     @Test
-    void test2BeanstalkException() throws Exception {
+    void test2BeanstalkException() {
         final long jobId = 111;
 
         when(client.touch(jobId))
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java
index 33724f8..13de1b3 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/TestExchangeCopyProcessor.java
@@ -24,7 +24,7 @@ public class TestExchangeCopyProcessor implements Processor {
     private Exchange exchange;
 
     @Override
-    public void process(Exchange exchange) throws Exception {
+    public void process(Exchange exchange) {
         this.exchange = exchange.copy();
     }
 
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java
index 82e226f..71686f2 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/BuryProducerIntegrationIT.java
@@ -47,7 +47,7 @@ public class BuryProducerIntegrationIT extends BeanstalkCamelITSupport {
 
     @Disabled("requires reserve - bury sequence")
     @Test
-    void testBury() throws InterruptedException, IOException {
+    void testBury() throws InterruptedException {
         long jobId = writer.put(0, 0, 5, new byte[0]);
         assertTrue(jobId > 0, "Valid Job Id");
 
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java
index f5e942d..cd8f11f 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/DeleteProducerIntegrationIT.java
@@ -45,7 +45,7 @@ public class DeleteProducerIntegrationIT extends BeanstalkCamelITSupport {
     protected ProducerTemplate direct;
 
     @Test
-    void testDelete() throws InterruptedException, IOException {
+    void testDelete() throws InterruptedException {
         long jobId = writer.put(0, 0, 5, new byte[0]);
         assertTrue(jobId > 0, "Valid Job Id");
 
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java
index 8e4ae76..7b097bb 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/PutProducerIntegrationIT.java
@@ -49,7 +49,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport {
     private final String testMessage = "Hello, world!";
 
     @Test
-    void testPut() throws InterruptedException, IOException {
+    void testPut() throws InterruptedException {
         resultEndpoint.expectedMessageCount(1);
         resultEndpoint.allMessages().header(Headers.JOB_ID).isNotNull();
         direct.sendBody(testMessage);
@@ -67,7 +67,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport {
     }
 
     @Test
-    void testOut() throws InterruptedException, IOException {
+    void testOut() {
         final Endpoint endpoint = context.getEndpoint("beanstalk:" + tubeName);
         final Exchange exchange
                 = template.send(endpoint, ExchangePattern.InOut, exchange1 -> exchange1.getIn().setBody(testMessage));
@@ -86,7 +86,7 @@ public class PutProducerIntegrationIT extends BeanstalkCamelITSupport {
     }
 
     @Test
-    void testDelay() throws InterruptedException, IOException {
+    void testDelay() throws InterruptedException {
         final byte[] testBytes = new byte[0];
 
         resultEndpoint.expectedMessageCount(1);
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java
index c0ac744..0748de9 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/ReleaseProducerIntegrationIT.java
@@ -47,7 +47,7 @@ public class ReleaseProducerIntegrationIT extends BeanstalkCamelITSupport {
 
     @Disabled("requires reserve - release sequence")
     @Test
-    void testBury() throws InterruptedException, IOException {
+    void testBury() throws InterruptedException {
         long jobId = writer.put(0, 0, 5, new byte[0]);
         assertTrue(jobId > 0, "Valid Job Id");
 
diff --git a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java
index 611db58..c8fcc04 100644
--- a/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java
+++ b/components/camel-beanstalk/src/test/java/org/apache/camel/component/beanstalk/integration/TouchProducerIntegrationIT.java
@@ -47,7 +47,7 @@ public class TouchProducerIntegrationIT extends BeanstalkCamelITSupport {
 
     @Disabled("requires reserve - touch sequence")
     @Test
-    void testBury() throws InterruptedException, IOException {
+    void testBury() throws InterruptedException {
         long jobId = writer.put(0, 0, 5, new byte[0]);
         assertTrue(jobId > 0, "Valid Job Id");
 

[camel] 07/09: CAMEL-17763: cleaned up unused exceptions in camel-bean

Posted by or...@apache.org.
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 a5acc430d8c9bde417dbf58bc2611a0fc6602830
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:38:48 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-bean
---
 .../src/test/java/org/apache/camel/component/bean/BeanInfoTest.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-bean/src/test/java/org/apache/camel/component/bean/BeanInfoTest.java b/components/camel-bean/src/test/java/org/apache/camel/component/bean/BeanInfoTest.java
index c679df7..6994e7e 100644
--- a/components/camel-bean/src/test/java/org/apache/camel/component/bean/BeanInfoTest.java
+++ b/components/camel-bean/src/test/java/org/apache/camel/component/bean/BeanInfoTest.java
@@ -89,7 +89,7 @@ public class BeanInfoTest {
                 .intercept(MethodDelegation.to(
                         new Object() {
                             @RuntimeType
-                            public void intercept() throws Exception {
+                            public void intercept() {
                             }
                         }))
                 .make()

[camel] 02/09: CAMEL-17763: cleaned up unused exceptions in camel-atom

Posted by or...@apache.org.
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 9e29e76b63be2d451f9c79f99e290b96d620252e
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:34:37 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-atom
---
 .../src/test/java/org/apache/camel/component/atom/JettyTestServer.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-atom/src/test/java/org/apache/camel/component/atom/JettyTestServer.java b/components/camel-atom/src/test/java/org/apache/camel/component/atom/JettyTestServer.java
index 9547044..2c2d95e 100644
--- a/components/camel-atom/src/test/java/org/apache/camel/component/atom/JettyTestServer.java
+++ b/components/camel-atom/src/test/java/org/apache/camel/component/atom/JettyTestServer.java
@@ -127,7 +127,7 @@ public final class JettyTestServer {
         private static final long serialVersionUID = 5594945031962091041L;
 
         @Override
-        protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+        protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
             resp.getWriter().write(FileUtils.readFileToString(new File("src/test/data/feed.atom"),
                     StandardCharsets.UTF_8));
         }

[camel] 01/09: CAMEL-17763: cleaned up unused exceptions in camel-atmosphere-websocket

Posted by or...@apache.org.
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 26383aed74e302b5669226d67ac2378804a31971
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:33:17 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-atmosphere-websocket
---
 .../org/apache/camel/component/atmosphere/websocket/TestClient.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/TestClient.java b/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/TestClient.java
index 988ad46..aa72728 100644
--- a/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/TestClient.java
+++ b/components/camel-atmosphere-websocket/src/test/java/org/apache/camel/component/atmosphere/websocket/TestClient.java
@@ -61,7 +61,7 @@ public class TestClient {
         this.url = url;
     }
 
-    public void connect() throws InterruptedException, ExecutionException, IOException {
+    public void connect() throws InterruptedException, ExecutionException {
         websocket = client.prepareGet(url).execute(
                 new WebSocketUpgradeHandler.Builder()
                         .addWebSocketListener(new TestWebSocketListener()).build())

[camel] 05/09: CAMEL-17763: cleaned up unused exceptions in camel-avro-rpc-component

Posted by or...@apache.org.
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 16827cf48c671b9d9423737c3bae50a25a8dae60
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:36:49 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-avro-rpc-component
---
 .../test/java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java    | 4 ++--
 .../camel/component/avro/processors/ReflectionInOnlyProcessor.java    | 2 +-
 .../camel/component/avro/processors/ReflectionInOutProcessor.java     | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java
index 7490cee..bca6770 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/avro/impl/KeyValueProtocolImpl.java
@@ -29,13 +29,13 @@ public class KeyValueProtocolImpl implements KeyValueProtocol {
     private Map<Key, Value> store = new HashMap<>();
 
     @Override
-    public Void put(Key key, Value value) throws AvroRemoteException {
+    public Void put(Key key, Value value) {
         store.put(key, value);
         return null;
     }
 
     @Override
-    public Value get(Key key) throws AvroRemoteException {
+    public Value get(Key key) {
         return store.get(key);
     }
 
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOnlyProcessor.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOnlyProcessor.java
index 4d56bbe..5f0f022 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOnlyProcessor.java
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOnlyProcessor.java
@@ -30,7 +30,7 @@ public class ReflectionInOnlyProcessor implements Processor {
     }
 
     @Override
-    public void process(Exchange exchange) throws Exception {
+    public void process(Exchange exchange) {
         Object body = exchange.getIn().getBody();
         if (body instanceof String) {
             testReflection.setName(String.valueOf(body));
diff --git a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
index d1ea748..c86ad8e 100644
--- a/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
+++ b/components/camel-avro-rpc/camel-avro-rpc-component/src/test/java/org/apache/camel/component/avro/processors/ReflectionInOutProcessor.java
@@ -30,7 +30,7 @@ public class ReflectionInOutProcessor implements Processor {
     }
 
     @Override
-    public void process(Exchange exchange) throws Exception {
+    public void process(Exchange exchange) {
         Object body = exchange.getIn().getBody();
         if (body instanceof Object[] && ((Object[]) body).length == 0) {
             exchange.getMessage().setBody(testReflection.getTestPojo());

[camel] 06/09: CAMEL-17763: cleaned up unused exceptions in camel-barcode

Posted by or...@apache.org.
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 5d35d30de02c8bf77c400371d7351fedd94e8bd6
Author: Otavio R. Piske <an...@gmail.com>
AuthorDate: Sun Mar 13 14:38:03 2022 +0100

    CAMEL-17763: cleaned up unused exceptions in camel-barcode
---
 .../org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java b/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java
index 8eedafb..6a6f204 100644
--- a/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java
+++ b/components/camel-barcode/src/test/java/org/apache/camel/dataformat/barcode/BarcodeUnmarshalTest.java
@@ -37,11 +37,11 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
 public class BarcodeUnmarshalTest extends BarcodeTestBase {
 
     @Test
-    void testOrientation() throws Exception {
+    void testOrientation() {
 
         Exchange exchange = template.request("direct:code1", new Processor() {
             @Override
-            public void process(Exchange exchange) throws Exception {
+            public void process(Exchange exchange) {
                 exchange.getIn().setBody(MSG);
             }
         });