[Minor] Code cleanup in UserRep

This commit is contained in:
Robert von Burg 2019-03-05 17:59:36 +01:00
parent 0b4e2e6e40
commit 5267ff1e1c
1 changed files with 2 additions and 5 deletions

View File

@ -74,8 +74,7 @@ public class UserRep implements Serializable {
if (propertyMap != null) {
this.properties = new HashMap<>(propertyMap);
if (this.properties.containsKey(""))
this.properties.remove("");
this.properties.remove("");
}
}
@ -345,10 +344,8 @@ public class UserRep implements Serializable {
Set<String> roles = new HashSet<>(this.roles);
Map<String, String> propertyMap = this.properties == null ? null : new HashMap<>(this.properties);
UserRep clone = new UserRep(this.userId, this.username, this.firstname, this.lastname, this.userState, roles,
return new UserRep(this.userId, this.username, this.firstname, this.lastname, this.userState, roles,
this.locale, propertyMap);
return clone;
}
public <T> T accept(PrivilegeElementVisitor<T> visitor) {