Skip to content

Commit f3fa5e4

Browse files
committed
gh-5073 Add trimming to User setters
1 parent d6a90ca commit f3fa5e4

File tree

1 file changed

+3
-3
lines changed
  • stroom-core-shared/src/main/java/stroom/security/shared

1 file changed

+3
-3
lines changed

stroom-core-shared/src/main/java/stroom/security/shared/User.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public String getSubjectId() {
169169
* See {@link User#getSubjectId()}
170170
*/
171171
public void setSubjectId(final String subjectId) {
172-
this.subjectId = subjectId;
172+
this.subjectId = NullSafe.get(subjectId, String::trim);
173173
}
174174

175175
/**
@@ -187,7 +187,7 @@ public String getDisplayName() {
187187
* See {@link User#getDisplayName()}
188188
*/
189189
public void setDisplayName(final String displayName) {
190-
this.displayName = displayName;
190+
this.displayName = NullSafe.get(displayName, String::trim);
191191
}
192192

193193
/**
@@ -208,7 +208,7 @@ public String getFullName() {
208208
* See {@link User#getFullName()}
209209
*/
210210
public void setFullName(final String fullName) {
211-
this.fullName = fullName;
211+
this.fullName = NullSafe.get(fullName, String::trim);
212212
}
213213

214214
/**

0 commit comments

Comments
 (0)