Removed string concatenation from buffer.append methods
This commit is contained in:
parent
addae5965d
commit
6049e9ac65
|
@ -79,11 +79,11 @@ public abstract class AbstractAuthenticationToken implements Authentication {
|
|||
|
||||
public String toString() {
|
||||
StringBuffer sb = new StringBuffer();
|
||||
sb.append(super.toString() + ": ");
|
||||
sb.append("Username: " + this.getPrincipal() + "; ");
|
||||
sb.append(super.toString()).append(": ");
|
||||
sb.append("Username: ").append(this.getPrincipal()).append("; ");
|
||||
sb.append("Password: [PROTECTED]; ");
|
||||
sb.append("Authenticated: " + this.isAuthenticated() + "; ");
|
||||
sb.append("Details: " + this.getDetails() + "; ");
|
||||
sb.append("Authenticated: ").append(this.isAuthenticated()).append("; ");
|
||||
sb.append("Details: ").append(this.getDetails()).append("; ");
|
||||
|
||||
if (this.getAuthorities() != null) {
|
||||
sb.append("Granted Authorities: ");
|
||||
|
|
Loading…
Reference in New Issue