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 11:09:55 UTC

[camel] branch camel-2.24.x updated: Update GooglePubsubEndpoint.java (#3404)

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

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


The following commit(s) were added to refs/heads/camel-2.24.x by this push:
     new 0fcf55d  Update GooglePubsubEndpoint.java (#3404)
0fcf55d is described below

commit 0fcf55d16dc9d150daeac7ca174352c21111d6df
Author: mricciuti <ma...@yahoo.fr>
AuthorDate: Thu Dec 12 12:09:43 2019 +0100

    Update GooglePubsubEndpoint.java (#3404)
    
    [CAMEL-14292] remove dependency to repackaged guava
---
 .../org/apache/camel/component/google/pubsub/GooglePubsubEndpoint.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 193596f..b0be2c3 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
@@ -18,7 +18,6 @@ package org.apache.camel.component.google.pubsub;
 
 import java.util.concurrent.ExecutorService;
 
-import com.google.api.client.repackaged.com.google.common.base.Strings;
 import com.google.api.services.pubsub.Pubsub;
 import org.apache.camel.Component;
 import org.apache.camel.Consumer;
@@ -84,7 +83,7 @@ public class GooglePubsubEndpoint extends DefaultEndpoint {
     }
 
     public void afterPropertiesSet() throws Exception {
-        if (Strings.isNullOrEmpty(loggerId)) {
+        if (loggerId == null || loggerId.length() == 0) {
             log = LoggerFactory.getLogger(this.getClass().getName());
         } else {
             log = LoggerFactory.getLogger(loggerId);