From 433c6390a36b050a88e12658310d46cf35b67add Mon Sep 17 00:00:00 2001 From: mebo4b Date: Fri, 20 Nov 2020 15:15:03 +0100 Subject: [PATCH] fix: checkstyle violations --- .../cob/userservice/api/authorization/Authorities.java | 7 ++++--- .../cob/userservice/config/GlobalMethodSecurityConfig.java | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/caritas/cob/userservice/api/authorization/Authorities.java b/src/main/java/de/caritas/cob/userservice/api/authorization/Authorities.java index 66bfff0dd..8331b574c 100644 --- a/src/main/java/de/caritas/cob/userservice/api/authorization/Authorities.java +++ b/src/main/java/de/caritas/cob/userservice/api/authorization/Authorities.java @@ -38,13 +38,14 @@ public static List 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"; diff --git a/src/main/java/de/caritas/cob/userservice/config/GlobalMethodSecurityConfig.java b/src/main/java/de/caritas/cob/userservice/config/GlobalMethodSecurityConfig.java index f9389c737..1d7944de5 100644 --- a/src/main/java/de/caritas/cob/userservice/config/GlobalMethodSecurityConfig.java +++ b/src/main/java/de/caritas/cob/userservice/config/GlobalMethodSecurityConfig.java @@ -31,7 +31,6 @@ protected AccessDecisionManager accessDecisionManager() { return new AffirmativeBased(decisionVoters); } - @Bean public GrantedAuthorityDefaults grantedAuthorityDefaults() { return new GrantedAuthorityDefaults(Authority.PREFIX);