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 2017/04/18 11:17:25 UTC
camel git commit: Avoid the use of StringUtils in favor of
ObjectHelper
Repository: camel
Updated Branches:
refs/heads/master 60675efc3 -> 33bb03fb2
Avoid the use of StringUtils in favor of ObjectHelper
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/33bb03fb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33bb03fb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33bb03fb
Branch: refs/heads/master
Commit: 33bb03fb24db0df2489686513cf0676983a3df27
Parents: 60675ef
Author: Andrea Cosentino <an...@gmail.com>
Authored: Tue Apr 18 13:14:59 2017 +0200
Committer: Andrea Cosentino <an...@gmail.com>
Committed: Tue Apr 18 13:17:11 2017 +0200
----------------------------------------------------------------------
.../java/org/apache/camel/component/grpc/GrpcProducer.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/33bb03fb/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java
----------------------------------------------------------------------
diff --git a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java
index 10d8faf..232b8d7 100644
--- a/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java
+++ b/components/camel-grpc/src/main/java/org/apache/camel/component/grpc/GrpcProducer.java
@@ -27,9 +27,9 @@ import org.apache.camel.AsyncProcessor;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.impl.DefaultProducer;
+import org.apache.camel.util.ObjectHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.springframework.util.StringUtils;
/**
* Represents asynchronous and synchronous gRPC producer implementations.
@@ -122,10 +122,10 @@ public class GrpcProducer extends DefaultProducer implements AsyncProcessor {
}
protected void initializeChannel() {
- if (!StringUtils.isEmpty(configuration.getHost()) && !StringUtils.isEmpty(configuration.getPort())) {
+ if (!ObjectHelper.isEmpty(configuration.getHost()) && !ObjectHelper.isEmpty(configuration.getPort())) {
LOG.info("Creating channel to the remote gRPC server " + configuration.getHost() + ":" + configuration.getPort());
channel = ManagedChannelBuilder.forAddress(configuration.getHost(), configuration.getPort()).usePlaintext(configuration.getUsePlainText()).build();
- } else if (!StringUtils.isEmpty(configuration.getTarget())) {
+ } else if (!ObjectHelper.isEmpty(configuration.getTarget())) {
LOG.info("Creating channel to the remote gRPC server " + configuration.getTarget());
channel = ManagedChannelBuilder.forTarget(configuration.getTarget()).usePlaintext(configuration.getUsePlainText()).build();
} else {