Skip to content

Commit

Permalink
feat: update toString methods
Browse files Browse the repository at this point in the history
  • Loading branch information
sitepark-veltrup committed Feb 2, 2024
1 parent 7a4b022 commit bcf95a7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,17 +178,9 @@ public final boolean equals(Object o) {

@Override
public String toString() {
return new StringBuilder()
.append(this.getName())
.append(" (")
.append("login: ").append(this.login)
.append(", ")
.append("id: ").append(this.id)
.append(", ")
.append("anchor: ").append(this.anchor)
.append(", ")
.append("roleList: ").append(this.roleList)
.append(')').toString();
return "User [id=" + id + ", anchor=" + anchor + ", login=" + login + ", firstname=" + firstname + ", lastname="
+ lastname + ", email=" + email + ", gender=" + gender + ", note=" + note + ", validity=" + validity
+ ", identityList=" + identityList + ", roleList=" + roleList + "]";
}

@SuppressWarnings("PMD.TooManyMethods")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,7 @@ public final boolean equals(Object o) {

@Override
public String toString() {
return new StringBuilder()
.append("blocked: ").append(this.blocked)
.append(", ")
.append("validFrom: ").append(this.validFrom)
.append(", ")
.append("validTo: ").append(this.validTo)
.toString();
return "UserValidity [blocked=" + blocked + ", validFrom=" + validFrom + ", validTo=" + validTo + "]";
}

@JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ public final int hashCode() {
return hash;
}

@Override
public String toString() {
return "LdapIdentity [server=" + server + ", dn=" + dn + "]";
}

@Override
public final boolean equals(Object o) {

Expand Down

0 comments on commit bcf95a7

Please sign in to comment.