Skip to content

Commit

Permalink
Replace StringUtils class completely
Browse files Browse the repository at this point in the history
Issue gh-9925
Closes gh-10805
  • Loading branch information
giger85 authored and eleftherias committed Feb 10, 2022
1 parent a09f6e1 commit 304ef23
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -41,8 +41,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.nimbusds.oauth2.sdk.util.StringUtils;

import org.springframework.core.convert.converter.Converter;
import org.springframework.core.io.DefaultResourceLoader;
import org.springframework.core.io.Resource;
Expand Down Expand Up @@ -102,6 +100,7 @@
import org.springframework.util.Assert;
import org.springframework.util.ClassUtils;
import org.springframework.util.DigestUtils;
import org.springframework.util.StringUtils;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
Expand Down Expand Up @@ -1206,7 +1205,7 @@ private Collection<GrantedAuthority> defaultAuthorities() {
return getAuthorities((Collection) scope);
}
String scopes = scope.toString();
if (StringUtils.isBlank(scopes)) {
if (!StringUtils.hasText(scopes)) {
return Collections.emptyList();
}
return getAuthorities(Arrays.asList(scopes.split(" ")));
Expand Down

0 comments on commit 304ef23

Please sign in to comment.