Skip to content

Commit 304ef23

Browse files
giger85eleftherias
authored andcommitted
Replace StringUtils class completely
Issue gh-9925 Closes gh-10805
1 parent a09f6e1 commit 304ef23

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/src/main/java/org/springframework/security/test/web/servlet/request/SecurityMockMvcRequestPostProcessors.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
import javax.servlet.http.HttpServletRequest;
4242
import javax.servlet.http.HttpServletResponse;
4343

44-
import com.nimbusds.oauth2.sdk.util.StringUtils;
45-
4644
import org.springframework.core.convert.converter.Converter;
4745
import org.springframework.core.io.DefaultResourceLoader;
4846
import org.springframework.core.io.Resource;
@@ -102,6 +100,7 @@
102100
import org.springframework.util.Assert;
103101
import org.springframework.util.ClassUtils;
104102
import org.springframework.util.DigestUtils;
103+
import org.springframework.util.StringUtils;
105104
import org.springframework.web.context.WebApplicationContext;
106105
import org.springframework.web.context.support.WebApplicationContextUtils;
107106
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
@@ -1206,7 +1205,7 @@ private Collection<GrantedAuthority> defaultAuthorities() {
12061205
return getAuthorities((Collection) scope);
12071206
}
12081207
String scopes = scope.toString();
1209-
if (StringUtils.isBlank(scopes)) {
1208+
if (!StringUtils.hasText(scopes)) {
12101209
return Collections.emptyList();
12111210
}
12121211
return getAuthorities(Arrays.asList(scopes.split(" ")));

0 commit comments

Comments
 (0)