This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 1040d34 Camel-AWS2-SES: Cleanup 1040d34 is described below commit 1040d3492aed2eccc6de26b90d45800a3030611f Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Tue Mar 17 18:31:38 2020 +0100 Camel-AWS2-SES: Cleanup --- .../main/java/org/apache/camel/component/aws2/ses/Ses2Producer.java | 2 +- .../camel/component/aws2/ses/SESComponentClientRegistryTest.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Producer.java b/components/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Producer.java index fc61236..e51fd92 100644 --- a/components/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Producer.java +++ b/components/camel-aws2-ses/src/main/java/org/apache/camel/component/aws2/ses/Ses2Producer.java @@ -145,7 +145,7 @@ public class Ses2Producer extends DefaultProducer { } @SuppressWarnings("unchecked") - private List determineRawTo(Exchange exchange) { + private List<String> determineRawTo(Exchange exchange) { List<String> to = exchange.getIn().getHeader(Ses2Constants.TO, List.class); if (to == null) { to = getConfiguration().getTo(); diff --git a/components/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SESComponentClientRegistryTest.java b/components/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SESComponentClientRegistryTest.java index 047ba09..e0f7fb2 100644 --- a/components/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SESComponentClientRegistryTest.java +++ b/components/camel-aws2-ses/src/test/java/org/apache/camel/component/aws2/ses/SESComponentClientRegistryTest.java @@ -33,6 +33,7 @@ public class SESComponentClientRegistryTest extends CamelTestSupport { Ses2Endpoint endpoint = (Ses2Endpoint)component.createEndpoint("aws-ses://f...@example.com"); assertNotNull(endpoint.getConfiguration().getAmazonSESClient()); + component.close(); } @Test @@ -40,7 +41,8 @@ public class SESComponentClientRegistryTest extends CamelTestSupport { Ses2Component component = new Ses2Component(context); assertThrows(IllegalArgumentException.class, () -> { - Ses2Endpoint endpoint = (Ses2Endpoint)component.createEndpoint("aws-ses://f...@example.com"); + component.createEndpoint("aws-ses://f...@example.com"); }); + component.close(); } }