Skip to content
Snippets Groups Projects
Commit 739465b0 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Fix assignment in setter

parent ebf4aea0
1 merge request!147Fix multiple bugs and code smells
...@@ -113,9 +113,9 @@ public class ServiceDescription { ...@@ -113,9 +113,9 @@ public class ServiceDescription {
return allowedRoles; return allowedRoles;
} }
public void setAllowedRoles(final Set<AuthenticationProviderProperties.Provider.Role> roles) { public void setAllowedRoles(final Set<AuthenticationProviderProperties.Provider.Role> allowedRoles) {
this.allowedRoles = allowedRoles; this.allowedRoles = allowedRoles;
this.allowedRoleStrings = roles.stream().map(r -> { this.allowedRoleStrings = allowedRoles.stream().map(r -> {
switch (r) { switch (r) {
case MODERATOR: case MODERATOR:
return "speaker"; return "speaker";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment