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


The following commit(s) were added to refs/heads/main by this push:
     new 3d97d78  (chores) camel-atmos: cleanup unused throws (#5696)
3d97d78 is described below

commit 3d97d7850f0f5da36aaafd339ec74b3c0ac8a1e7
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Thu Jun 17 15:08:04 2021 +0200

    (chores) camel-atmos: cleanup unused throws (#5696)
---
 .../java/org/apache/camel/component/atmos/core/AtmosAPIFacade.java  | 6 +++---
 .../component/atmos/integration/producer/AtmosDelProducer.java      | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/core/AtmosAPIFacade.java
 
b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/core/AtmosAPIFacade.java
index eb7a420..22a989f 100644
--- 
a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/core/AtmosAPIFacade.java
+++ 
b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/core/AtmosAPIFacade.java
@@ -156,7 +156,7 @@ public final class AtmosAPIFacade {
         }
     }
 
-    private ObjectId putSingleFile(File inputFile, String atmosPath) throws 
Exception {
+    private ObjectId putSingleFile(File inputFile, String atmosPath) throws 
IOException {
         FileInputStream inputStream = new FileInputStream(inputFile);
         ObjectId uploadedFile = null;
         try {
@@ -178,7 +178,7 @@ public final class AtmosAPIFacade {
      * @return                a AtmosResult object with the result of the 
delete operation.
      * @throws AtmosException
      */
-    public AtmosResult del(String remotePath) throws AtmosException {
+    public AtmosResult del(String remotePath) {
         AtmosResult result = null;
         ObjectPath op = new ObjectPath(remotePath);
         AtmosAPIFacade.client.delete(op);
@@ -195,7 +195,7 @@ public final class AtmosAPIFacade {
      * @return                a AtmosResult object with the result of the move 
operation.
      * @throws AtmosException
      */
-    public AtmosResult move(String remotePath, String newRemotePath) throws 
AtmosException {
+    public AtmosResult move(String remotePath, String newRemotePath) {
         AtmosResult result = null;
         AtmosAPIFacade.client.move(new ObjectPath(remotePath), new 
ObjectPath(newRemotePath), true);
         result = new AtmosMoveResult();
diff --git 
a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/integration/producer/AtmosDelProducer.java
 
b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/integration/producer/AtmosDelProducer.java
index 4cda371..92d0364 100644
--- 
a/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/integration/producer/AtmosDelProducer.java
+++ 
b/components/camel-atmos/src/main/java/org/apache/camel/component/atmos/integration/producer/AtmosDelProducer.java
@@ -29,7 +29,7 @@ public class AtmosDelProducer extends AtmosProducer {
     }
 
     @Override
-    public void process(Exchange exchange) throws Exception {
+    public void process(Exchange exchange) {
         AtmosResult result = 
AtmosAPIFacade.getInstance(configuration.getClient())
                 .del(configuration.getRemotePath());
         result.populateExchange(exchange);

Reply via email to