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 b9df09d CAMEL-14292 - Remove unwanted dependency to Guava strings class repackaged in google-http-client library b9df09d is described below commit b9df09d1ad950c9c577ddb859e9d6d57b4f0be2d Author: Andrea Cosentino <anco...@gmail.com> AuthorDate: Thu Dec 12 12:20:01 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 b0be2c3..c5a1600 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 @@ -29,6 +29,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; @@ -83,7 +84,7 @@ public class GooglePubsubEndpoint extends DefaultEndpoint { } public void afterPropertiesSet() throws Exception { - if (loggerId == null || loggerId.length() == 0) { + if (ObjectHelper.isEmpty(loggerId)) { log = LoggerFactory.getLogger(this.getClass().getName()); } else { log = LoggerFactory.getLogger(loggerId);