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 2020/03/17 11:27:54 UTC

[camel] branch master updated (35600d4 -> 44de364)

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

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 35600d4  Upgrade AWS SDK v2 to version 2.10.87
     new dea64b0  Camel-AWS2-CW: Add @SuppressWarnings("unchecked")
     new 66604fa  Camel-AWS2-CW: Cleanup
     new 44de364  Camel-AWS2-CW: Fixed CS

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:
 .../src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java   | 1 +
 .../apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java   | 2 +-
 .../test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java   | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)


[camel] 03/03: Camel-AWS2-CW: Fixed CS

Posted by ac...@apache.org.
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

commit 44de36437e2ca89c697e406a4f10cb8ecac5a269
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 17 12:27:19 2020 +0100

    Camel-AWS2-CW: Fixed CS
---
 .../src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
index 5b20130..7c504ed 100644
--- a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
+++ b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
@@ -83,7 +83,7 @@ public class Cw2Producer extends DefaultProducer {
             metricDatum.dimensions(Dimension.builder().name(name).value(value).build());
         } else {
             @SuppressWarnings("unchecked")
-			Map<String, String> dimensions = exchange.getIn().getHeader(Cw2Constants.METRIC_DIMENSIONS, Map.class);
+            Map<String, String> dimensions = exchange.getIn().getHeader(Cw2Constants.METRIC_DIMENSIONS, Map.class);
             if (dimensions != null) {
                 Collection<Dimension> dimensionCollection = new ArrayList<>();
                 for (Map.Entry<String, String> dimensionEntry : dimensions.entrySet()) {


[camel] 01/03: Camel-AWS2-CW: Add @SuppressWarnings("unchecked")

Posted by ac...@apache.org.
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

commit dea64b035bbf0720662cebff311a6b5b43fbc303
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 17 12:22:39 2020 +0100

    Camel-AWS2-CW: Add @SuppressWarnings("unchecked")
---
 .../src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
index cdefa9d..5b20130 100644
--- a/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
+++ b/components/camel-aws2-cw/src/main/java/org/apache/camel/component/aws2/cw/Cw2Producer.java
@@ -82,7 +82,8 @@ public class Cw2Producer extends DefaultProducer {
         if (name != null && value != null) {
             metricDatum.dimensions(Dimension.builder().name(name).value(value).build());
         } else {
-            Map<String, String> dimensions = exchange.getIn().getHeader(Cw2Constants.METRIC_DIMENSIONS, Map.class);
+            @SuppressWarnings("unchecked")
+			Map<String, String> dimensions = exchange.getIn().getHeader(Cw2Constants.METRIC_DIMENSIONS, Map.class);
             if (dimensions != null) {
                 Collection<Dimension> dimensionCollection = new ArrayList<>();
                 for (Map.Entry<String, String> dimensionEntry : dimensions.entrySet()) {


[camel] 02/03: Camel-AWS2-CW: Cleanup

Posted by ac...@apache.org.
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

commit 66604faa0d293cbe1364dda9fb1af89ab6435754
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Mar 17 12:24:21 2020 +0100

    Camel-AWS2-CW: Cleanup
---
 .../apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java   | 2 +-
 .../test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
index 5f25dbf..01152e6 100644
--- a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
+++ b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentRegistryClientTest.java
@@ -49,7 +49,7 @@ public class CwComponentRegistryClientTest extends CamelTestSupport {
     public void createEndpointWithMinimalS3ClientMisconfiguration() throws Exception {
         Cw2Component component = context.getComponent("aws2-cw", Cw2Component.class);
         assertThrows(IllegalArgumentException.class, () -> {
-            Cw2Endpoint endpoint = (Cw2Endpoint)component.createEndpoint("aws2-cw://camel.apache.org/test");
+            component.createEndpoint("aws2-cw://camel.apache.org/test");
         });
     }
 }
diff --git a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
index e76680e..2d2bbd7 100644
--- a/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
+++ b/components/camel-aws2-cw/src/test/java/org/apache/camel/component/aws2/cw/CwComponentTest.java
@@ -45,7 +45,7 @@ public class CwComponentTest extends CamelTestSupport {
     @Test
     public void sendMetricFromHeaderValues() throws Exception {
         mock.expectedMessageCount(1);
-        Exchange exchange = template.request("direct:start", new Processor() {
+        template.send("direct:start", new Processor() {
             public void process(Exchange exchange) throws Exception {
                 exchange.getIn().setHeader(Cw2Constants.METRIC_NAMESPACE, "camel.apache.org/overriden");
                 exchange.getIn().setHeader(Cw2Constants.METRIC_NAME, "OverridenMetric");