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 2019/12/12 10:36:19 UTC

[camel] branch camel-3.0.x updated: CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library

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

acosentino pushed a commit to branch camel-3.0.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.0.x by this push:
     new b765903  CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library
b765903 is described below

commit b765903375338d30eff789802e84ee18596cd4c6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 12 11:35:48 2019 +0100

    CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library
---
 .../org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/components/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java b/components/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
index 87822ae..d6d0149 100644
--- a/components/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
+++ b/components/camel-google-pubsub/src/main/java/org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java
@@ -30,6 +30,7 @@ import org.apache.camel.spi.UriEndpoint;
 import org.apache.camel.spi.UriParam;
 import org.apache.camel.spi.UriPath;
 import org.apache.camel.support.DefaultEndpoint;
+import org.apache.camel.util.ObjectHelper;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -84,7 +85,7 @@ public class GooglePubsubEndpoint extends DefaultEndpoint {
     }
 
     public void afterPropertiesSet() throws Exception {
-        if (Strings.isNullOrEmpty(loggerId)) {
+        if (ObjectHelper.isEmpty(loggerId)) {
             log = LoggerFactory.getLogger(this.getClass().getName());
         } else {
             log = LoggerFactory.getLogger(loggerId);