Skip to content

Commit

Permalink
Objects.isNull is only available from jdk 1.8 but apollo-client is ta…
Browse files Browse the repository at this point in the history
…rgeted to jdk 1.7+, so we need to use a compatible one (#2677)
  • Loading branch information
nobodyiam authored Oct 19, 2019
1 parent 7072917 commit 0d824bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private Object evaluateBeanDefinitionString(ConfigurableBeanFactory beanFactory,
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;
}

Expand Down

0 comments on commit 0d824bb

Please sign in to comment.