Commit 0d824bb9 authored by Jason Song's avatar Jason Song Committed by 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)
parent 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% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment