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:48:05 UTC
[camel] branch camel-2.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-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new 84ff23e CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library
84ff23e is described below
commit 84ff23e6d9d59c6e577958d515e8bfe279a97e0c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Dec 12 11:37: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 193596f..d48bcfd 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.Metadata;
import org.apache.camel.spi.UriEndpoint;
import org.apache.camel.spi.UriParam;
import org.apache.camel.spi.UriPath;
+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);