You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2024/02/13 15:32:22 UTC

(camel) branch main updated: Camel-AWS2-SES: Removed useles variables

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

acosentino 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 98e33aa1784 Camel-AWS2-SES: Removed useles variables
98e33aa1784 is described below

commit 98e33aa1784ae52319be1dab8b9a27122a5b671c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Feb 13 16:31:08 2024 +0100

    Camel-AWS2-SES: Removed useles variables
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../org/apache/camel/component/aws2/ses/Ses2Configuration.java   | 4 ++--
 .../camel/component/aws2/ses/SesComponentConfigurationTest.java  | 9 ---------
 2 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/components/camel-aws/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Configuration.java b/components/camel-aws/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Configuration.java
index 1813fdf3599..609467b0fab 100644
--- a/components/camel-aws/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Configuration.java
+++ b/components/camel-aws/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Configuration.java
@@ -263,8 +263,8 @@ public class Ses2Configuration implements Cloneable {
     }
 
     /**
-     * Set the need for overriding the endpoint. This option needs to be used in combination with the uriEndpointOverride
-     * option
+     * Set the need for overriding the endpoint. This option needs to be used in combination with the
+     * uriEndpointOverride option
      */
     public void setOverrideEndpoint(boolean overrideEndpoint) {
         this.overrideEndpoint = overrideEndpoint;
diff --git a/components/camel-aws/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SesComponentConfigurationTest.java b/components/camel-aws/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SesComponentConfigurationTest.java
index 732e40b792f..20e0a51ff8d 100644
--- a/components/camel-aws/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SesComponentConfigurationTest.java
+++ b/components/camel-aws/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SesComponentConfigurationTest.java
@@ -16,9 +16,6 @@
  */
 package org.apache.camel.component.aws2.ses;
 
-import java.util.ArrayList;
-import java.util.List;
-
 import org.apache.camel.Endpoint;
 import org.apache.camel.test.junit5.CamelTestSupport;
 import org.junit.jupiter.api.Test;
@@ -102,12 +99,6 @@ public class SesComponentConfigurationTest extends CamelTestSupport {
     @Test
     public void createEndpointWithMaximalConfiguration() throws Exception {
         AmazonSESClientMock mock = new AmazonSESClientMock();
-        List<String> to = new ArrayList<String>();
-        to.add("to1@example.com");
-        to.add("to2@example.com");
-        List<String> replyAddress = new ArrayList<String>();
-        replyAddress.add("replyTo1@example.com");
-        replyAddress.add("replyTo2@example.com");
 
         context.getRegistry().bind("amazonSESClient", mock);
         Ses2Component component = context.getComponent("aws2-ses", Ses2Component.class);