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:27:04 UTC
[camel] branch master 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 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 7b25b69 CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library
7b25b69 is described below
commit 7b25b698fce756ce68b2e0db81c30b94320e353e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 12 11:25:39 2019 +0100
CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library
---
.../apache/camel/component/google/pubsub/GooglePubsubEndpoint.java | 4 ++--
1 file changed, 2 insertions(+), 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 6645efb..87d99f3 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;
@@ -30,6 +29,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.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -85,7 +85,7 @@ public class GooglePubsubEndpoint extends DefaultEndpoint {
}
public void afterPropertiesSet() throws Exception {
- if (Strings.isNullOrEmpty(loggerId)) {
+ if (ObjectHelper.isEmpty(loggerId)) {
log = LogManager.getLogger(this.getClass().getName());
} else {
log = LogManager.getLogger(loggerId);