未验证 提交 0d824bb9 编写于 作者: J Jason Song 提交者: GitHub

Objects.isNull is only available from jdk 1.8 but apollo-client is targeted to...

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)
上级 70729178
......@@ -66,7 +66,7 @@ public class PlaceholderHelper {
public Set<String> extractPlaceholderKeys(String propertyString) {
Set<String> placeholderKeys = Sets.newHashSet();
if (Objects.isNull(propertyString) || (!isNormalizedPlaceholder(propertyString) && !isExpressionWithPlaceholder(propertyString))) {
if (Strings.isNullOrEmpty(propertyString) || (!isNormalizedPlaceholder(propertyString) && !isExpressionWithPlaceholder(propertyString))) {
return placeholderKeys;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册