From 0d824bb9085c66d3e1bcb8e09f53cf16a978715c Mon Sep 17 00:00:00 2001 From: Jason Song Date: Sat, 19 Oct 2019 20:12:21 +0800 Subject: [PATCH] Objects.isNull is only available from jdk 1.8 but apollo-client is targeted to jdk 1.7+, so we need to use a compatible one (#2677) --- .../framework/apollo/spring/property/PlaceholderHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/PlaceholderHelper.java b/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/PlaceholderHelper.java index 39c587c27..21a9d0348 100644 --- a/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/PlaceholderHelper.java +++ b/apollo-client/src/main/java/com/ctrip/framework/apollo/spring/property/PlaceholderHelper.java @@ -66,7 +66,7 @@ public class PlaceholderHelper { public Set extractPlaceholderKeys(String propertyString) { Set placeholderKeys = Sets.newHashSet(); - if (Objects.isNull(propertyString) || (!isNormalizedPlaceholder(propertyString) && !isExpressionWithPlaceholder(propertyString))) { + if (Strings.isNullOrEmpty(propertyString) || (!isNormalizedPlaceholder(propertyString) && !isExpressionWithPlaceholder(propertyString))) { return placeholderKeys; } -- GitLab