Skip to content

Commit

Permalink
fix: checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
mebo4b committed Nov 20, 2020
1 parent 1962b75 commit 433c639
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ public static List<String> getAuthoritiesByUserRole(UserRole userRole) {
.filter(authority -> authority.userRole.equals(userRole))
.findFirst();

return authorityByUserRole.isPresent() ?
authorityByUserRole.get().getAuhorities() : emptyList();
return authorityByUserRole.isPresent() ? authorityByUserRole.get().getAuhorities()
: emptyList();
}

public static class Authority {

private Authority() {}
private Authority() {
}

public static final String PREFIX = "AUTHORIZATION_";
public static final String CONSULTANT_DEFAULT = PREFIX + "CONSULTANT_DEFAULT";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ protected AccessDecisionManager accessDecisionManager() {
return new AffirmativeBased(decisionVoters);
}


@Bean
public GrantedAuthorityDefaults grantedAuthorityDefaults() {
return new GrantedAuthorityDefaults(Authority.PREFIX);
Expand Down

0 comments on commit 433c639

Please sign in to comment.