camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From acosent...@apache.org
Subject [camel] 02/02: CAMEL-13045 - Fixed CS
Date Thu, 10 Jan 2019 07:21:48 GMT
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 c2bf2977191227a5e3af36acf2ddedebb50390ff
Author: Andrea Cosentino <ancosen@gmail.com>
AuthorDate: Thu Jan 10 08:19:41 2019 +0100

    CAMEL-13045 - Fixed CS
---
 .../apache/camel/component/slack/SlackComponentVerifierExtension.java  | 3 ++-
 .../src/main/java/org/apache/camel/component/slack/SlackEndpoint.java  | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackComponentVerifierExtension.java
b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackComponentVerifierExtension.java
index 1960b8d..3770449 100644
--- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackComponentVerifierExtension.java
+++ b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackComponentVerifierExtension.java
@@ -107,7 +107,8 @@ public class SlackComponentVerifierExtension extends DefaultComponentVerifierExt
             } catch (Exception e) {
                 builder.error(ResultErrorBuilder.withCodeAndDescription(VerificationError.StandardCode.AUTHENTICATION,
"Invalid webhookUrl").parameterKey("webhookUrl").build());
             }
-        } if (ObjectHelper.isNotEmpty((String)parameters.get("token"))) {
+        } 
+        if (ObjectHelper.isNotEmpty((String)parameters.get("token"))) {
             String token = (String)parameters.get("token");
 
             try {
diff --git a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
index 8bec47f..901fbd8 100644
--- a/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
+++ b/components/camel-slack/src/main/java/org/apache/camel/component/slack/SlackEndpoint.java
@@ -24,11 +24,11 @@ import org.apache.camel.Processor;
 import org.apache.camel.Producer;
 import org.apache.camel.RuntimeCamelException;
 import org.apache.camel.component.slack.helper.SlackMessage;
-import org.apache.camel.support.ScheduledPollEndpoint;
 import org.apache.camel.spi.Metadata;
 import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
+import org.apache.camel.support.ScheduledPollEndpoint;
 import org.apache.camel.util.ObjectHelper;
 import org.json.simple.JSONObject;
 


Mime
View raw message