Browse Source

Fix formatting

pull/13716/head
Mario Petrovski 2 years ago committed by Josh Cummings
parent
commit
5e0ea6ce8a
  1. 4
      oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java

4
oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/ScopeAuthorizationManagerFactory.java

@ -33,8 +33,8 @@ public final class ScopeAuthorizationManagerFactory { @@ -33,8 +33,8 @@ public final class ScopeAuthorizationManagerFactory {
}
public static <T> AuthorityAuthorizationManager<T> hasAnyScope(String... scopes) {
String[] mappedScopes = Arrays.stream(scopes).map((String s) -> "SCOPE_" + s)
.toArray(String[]::new);
String[] mappedScopes = Arrays.stream(scopes).map((String s) -> "SCOPE_" + s).toArray(String[]::new);
return AuthorityAuthorizationManager.hasAnyAuthority(mappedScopes);
}
}

Loading…
Cancel
Save