You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/01/23 06:33:16 UTC

[1/3] camel git commit: CAMEL-10736: Box component configuration problem

Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 4b8b671ef -> 306663cce
  refs/heads/camel-2.18.x 438524ec4 -> 85f4bd7ba
  refs/heads/master 36ba1228e -> 9856285d1


CAMEL-10736: Box component configuration problem


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/9856285d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/9856285d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/9856285d

Branch: refs/heads/master
Commit: 9856285d1b9a8a0d3ca282178c70993c4f724596
Parents: 36ba122
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 23 07:31:00 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/box/BoxComponent.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/9856285d/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
index ac20424..3928b4d 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
@@ -78,12 +78,8 @@ public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfigurat
     protected void doStart() throws Exception {
         super.doStart();
 
-        if (cachedBoxClient == null) {
-            if (configuration != null) {
-                cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
-            } else {
-                throw new IllegalArgumentException("Unable to connect, Box component configuration is missing");
-            }
+        if (cachedBoxClient == null && configuration != null) {
+            cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
         }
     }
 


[3/3] camel git commit: CAMEL-10736: Box component configuration problem

Posted by da...@apache.org.
CAMEL-10736: Box component configuration problem


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/306663cc
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/306663cc
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/306663cc

Branch: refs/heads/camel-2.17.x
Commit: 306663cce2b7f3f6bccafddfebc1cf4ff94877d6
Parents: 4b8b671e
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 23 07:32:55 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/box/BoxComponent.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/306663cc/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
index c770d8f..9c851f1 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
@@ -76,12 +76,8 @@ public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfigurat
     protected void doStart() throws Exception {
         super.doStart();
 
-        if (cachedBoxClient == null) {
-            if (configuration != null) {
-                cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
-            } else {
-                throw new IllegalArgumentException("Unable to connect, Box component configuration is missing");
-            }
+        if (cachedBoxClient == null && configuration != null) {
+            cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
         }
     }
 


[2/3] camel git commit: CAMEL-10736: Box component configuration problem

Posted by da...@apache.org.
CAMEL-10736: Box component configuration problem


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/85f4bd7b
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/85f4bd7b
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/85f4bd7b

Branch: refs/heads/camel-2.18.x
Commit: 85f4bd7bab51304e22489bbf1b20c771dae94394
Parents: 438524e
Author: Claus Ibsen <da...@apache.org>
Authored: Mon Jan 23 07:31:00 2017 +0100
Committer: Claus Ibsen <da...@apache.org>
Committed: Mon Jan 23 07:32:23 2017 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/component/box/BoxComponent.java    | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/85f4bd7b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
index c770d8f..9c851f1 100644
--- a/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
+++ b/components/camel-box/src/main/java/org/apache/camel/component/box/BoxComponent.java
@@ -76,12 +76,8 @@ public class BoxComponent extends AbstractApiComponent<BoxApiName, BoxConfigurat
     protected void doStart() throws Exception {
         super.doStart();
 
-        if (cachedBoxClient == null) {
-            if (configuration != null) {
-                cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
-            } else {
-                throw new IllegalArgumentException("Unable to connect, Box component configuration is missing");
-            }
+        if (cachedBoxClient == null && configuration != null) {
+            cachedBoxClient = BoxClientHelper.createBoxClient(configuration);
         }
     }