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 <[email protected]>
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());

Reply via email to