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/06/03 09:01:18 UTC

[camel] branch main updated (f7e598ef7f2 -> 49014c83dd8)

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 f7e598ef7f2 CAMEL-18151: camel-jbang - Export filter out duplicates.
     new 1a6b6475aea (chores) camel-huaweicloud: remove unused local variables
     new face7f76925 (chores) camel-vertx: remove unused local variables
     new 49014c83dd8 (chores) camel-package-maven-plugin: remove unused local variables

The 3 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:
 .../org/apache/camel/component/huaweicloud/dms/DMSProducer.java     | 6 ++----
 .../org/apache/camel/component/huaweicloud/obs/OBSConsumer.java     | 6 ++----
 .../apache/camel/component/vertx/http/DefaultVertxHttpBinding.java  | 1 -
 .../java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java   | 2 +-
 4 files changed, 5 insertions(+), 10 deletions(-)


[camel] 01/03: (chores) camel-huaweicloud: remove unused local variables

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 1a6b6475aea59729c11d9b4f14e75249f87c5448
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 3 10:02:22 2022 +0200

    (chores) camel-huaweicloud: remove unused local variables
---
 .../org/apache/camel/component/huaweicloud/dms/DMSProducer.java     | 6 ++----
 .../org/apache/camel/component/huaweicloud/obs/OBSConsumer.java     | 6 ++----
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/components/camel-huawei/camel-huaweicloud-dms/src/main/java/org/apache/camel/component/huaweicloud/dms/DMSProducer.java b/components/camel-huawei/camel-huaweicloud-dms/src/main/java/org/apache/camel/component/huaweicloud/dms/DMSProducer.java
index 394caf6ed62..19759b7c851 100644
--- a/components/camel-huawei/camel-huaweicloud-dms/src/main/java/org/apache/camel/component/huaweicloud/dms/DMSProducer.java
+++ b/components/camel-huawei/camel-huaweicloud-dms/src/main/java/org/apache/camel/component/huaweicloud/dms/DMSProducer.java
@@ -29,14 +29,12 @@ import org.apache.camel.component.huaweicloud.dms.models.CreateInstanceRequest;
 import org.apache.camel.component.huaweicloud.dms.models.CreateInstanceRequestBody;
 import org.apache.camel.component.huaweicloud.dms.models.CreateInstanceResponse;
 import org.apache.camel.component.huaweicloud.dms.models.DeleteInstanceRequest;
-import org.apache.camel.component.huaweicloud.dms.models.DeleteInstanceResponse;
 import org.apache.camel.component.huaweicloud.dms.models.DmsInstance;
 import org.apache.camel.component.huaweicloud.dms.models.ListInstancesRequest;
 import org.apache.camel.component.huaweicloud.dms.models.ListInstancesResponse;
 import org.apache.camel.component.huaweicloud.dms.models.QueryInstanceRequest;
 import org.apache.camel.component.huaweicloud.dms.models.UpdateInstanceRequest;
 import org.apache.camel.component.huaweicloud.dms.models.UpdateInstanceRequestBody;
-import org.apache.camel.component.huaweicloud.dms.models.UpdateInstanceResponse;
 import org.apache.camel.support.DefaultProducer;
 import org.apache.camel.util.ObjectHelper;
 import org.slf4j.Logger;
@@ -217,7 +215,7 @@ public class DMSProducer extends DefaultProducer {
 
         DeleteInstanceRequest request = new DeleteInstanceRequest()
                 .withInstanceId(clientConfigurations.getInstanceId());
-        DeleteInstanceResponse response = dmsClient.deleteInstance(request);
+        dmsClient.deleteInstance(request);
         exchange.setProperty(DMSProperties.INSTANCE_DELETED, true);
     }
 
@@ -283,7 +281,7 @@ public class DMSProducer extends DefaultProducer {
         UpdateInstanceRequest request = new UpdateInstanceRequest()
                 .withInstanceId(clientConfigurations.getInstanceId())
                 .withBody(body);
-        UpdateInstanceResponse response = dmsClient.updateInstance(request);
+        dmsClient.updateInstance(request);
         exchange.setProperty(DMSProperties.INSTANCE_UPDATED, true);
     }
 
diff --git a/components/camel-huawei/camel-huaweicloud-obs/src/main/java/org/apache/camel/component/huaweicloud/obs/OBSConsumer.java b/components/camel-huawei/camel-huaweicloud-obs/src/main/java/org/apache/camel/component/huaweicloud/obs/OBSConsumer.java
index 5eb6042e1fe..a0f3d8ca44e 100644
--- a/components/camel-huawei/camel-huaweicloud-obs/src/main/java/org/apache/camel/component/huaweicloud/obs/OBSConsumer.java
+++ b/components/camel-huawei/camel-huaweicloud-obs/src/main/java/org/apache/camel/component/huaweicloud/obs/OBSConsumer.java
@@ -25,8 +25,6 @@ import com.obs.services.ObsClient;
 import com.obs.services.exception.ObsException;
 import com.obs.services.model.BucketMetadataInfoRequest;
 import com.obs.services.model.BucketMetadataInfoResult;
-import com.obs.services.model.CopyObjectResult;
-import com.obs.services.model.DeleteObjectResult;
 import com.obs.services.model.ListObjectsRequest;
 import com.obs.services.model.ObjectListing;
 import com.obs.services.model.ObsObject;
@@ -249,12 +247,12 @@ public class OBSConsumer extends ScheduledBatchPollingConsumer {
 
         // copy object to destination bucket
         if (endpoint.isMoveAfterRead()) {
-            CopyObjectResult result = obsClient.copyObject(bucketName, objectKey, endpoint.getDestinationBucket(), objectKey);
+            obsClient.copyObject(bucketName, objectKey, endpoint.getDestinationBucket(), objectKey);
         }
 
         // delete object from source bucket
         if (endpoint.isDeleteAfterRead()) {
-            DeleteObjectResult result = obsClient.deleteObject(bucketName, objectKey);
+            obsClient.deleteObject(bucketName, objectKey);
         }
     }
 


[camel] 02/03: (chores) camel-vertx: remove unused local variables

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 face7f7692560dd0cf2f6ccc2dba15e5721b7f71
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 3 10:03:46 2022 +0200

    (chores) camel-vertx: remove unused local variables
---
 .../org/apache/camel/component/vertx/http/DefaultVertxHttpBinding.java   | 1 -
 1 file changed, 1 deletion(-)

diff --git a/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/DefaultVertxHttpBinding.java b/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/DefaultVertxHttpBinding.java
index 54490a9f810..fd78f3d2258 100644
--- a/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/DefaultVertxHttpBinding.java
+++ b/components/camel-vertx/camel-vertx-http/src/main/java/org/apache/camel/component/vertx/http/DefaultVertxHttpBinding.java
@@ -230,7 +230,6 @@ public class DefaultVertxHttpBinding implements VertxHttpBinding {
     @Override
     public Throwable handleResponseFailure(VertxHttpEndpoint endpoint, Exchange exchange, HttpResponse<Buffer> result)
             throws Exception {
-        VertxHttpConfiguration configuration = endpoint.getConfiguration();
         Throwable exception;
 
         Object responseBody = processResponseBody(endpoint, exchange, result, true);


[camel] 03/03: (chores) camel-package-maven-plugin: remove unused local variables

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 49014c83dd88d73a21f709e1a0c4516b8bc920ac
Author: Otavio Rodolfo Piske <an...@gmail.com>
AuthorDate: Fri Jun 3 10:05:00 2022 +0200

    (chores) camel-package-maven-plugin: remove unused local variables
---
 .../main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java
index 1556baeef52..538775bd537 100644
--- a/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java
+++ b/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PrepareCatalogMojo.java
@@ -294,7 +294,7 @@ public class PrepareCatalogMojo extends AbstractMojo {
 
     protected void executeModel() throws Exception {
         Path modelDir = this.modelDir.toPath();
-        Path springDir = this.springDir.toPath();
+        this.springDir.toPath();
         Path modelsOutDir = this.modelsOutDir.toPath();
 
         getLog().info("================================================================================");