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 2018/03/21 08:41:36 UTC

[camel] branch master updated: Camel-Cassandraql: Use StringHelper instead of ObjectHelper

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 a7fec5a  Camel-Cassandraql: Use StringHelper instead of ObjectHelper
a7fec5a is described below

commit a7fec5aa5ff56567e3e64e28df6a4e1f0eeba198
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 21 09:34:16 2018 +0100

    Camel-Cassandraql: Use StringHelper instead of ObjectHelper
---
 .../org/apache/camel/component/cassandra/CassandraComponent.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
index 508870b..093aab4 100644
--- a/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
+++ b/components/camel-cassandraql/src/main/java/org/apache/camel/component/cassandra/CassandraComponent.java
@@ -22,7 +22,7 @@ import org.apache.camel.CamelContext;
 import org.apache.camel.Endpoint;
 import org.apache.camel.impl.DefaultComponent;
 import org.apache.camel.util.CamelContextHelper;
-import org.apache.camel.util.ObjectHelper;
+import org.apache.camel.util.StringHelper;
 
 /**
  * Represents the component that manages {@link CassandraEndpoint}. This
@@ -67,8 +67,8 @@ public class CassandraComponent extends DefaultComponent {
         } else {
             // hosts and port (port is optional)
             if (remaining.contains(":")) {
-                port = ObjectHelper.after(remaining, ":");
-                hosts = ObjectHelper.before(remaining, ":");
+                port = StringHelper.after(remaining, ":");
+                hosts = StringHelper.before(remaining, ":");
             } else {
                 hosts = remaining;
             }

-- 
To stop receiving notification emails like this one, please contact
acosentino@apache.org.