formatting work

This commit is contained in:
eugenp
2016-10-12 08:02:05 +03:00
parent eb7650eead
commit 856be0a08a
128 changed files with 2039 additions and 2275 deletions

View File

@@ -51,9 +51,7 @@ public class MyUserDetailsService implements UserDetailsService {
private User createUser(final String username, final String password, final List<SecurityRole> roles) {
logger.info("Create user " + username);
final List<GrantedAuthority> authorities = roles.stream()
.map(role -> new SimpleGrantedAuthority(role.toString()))
.collect(Collectors.toList());
final List<GrantedAuthority> authorities = roles.stream().map(role -> new SimpleGrantedAuthority(role.toString())).collect(Collectors.toList());
return new User(username, password, true, true, true, true, authorities);
}