HADOOP-15854. AuthToken Use StringBuilder instead of StringBuffer.

Contributed by Beluga Behr.
This commit is contained in:
Steve Loughran 2018-10-17 10:29:09 +01:00
parent 64a43c92c2
commit b738cb148c
No known key found for this signature in database
GPG Key ID: D22CF846DBB162A0
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class AuthToken implements Principal {
* Generates the token.
*/
private void generateToken() {
StringBuffer sb = new StringBuffer();
StringBuilder sb = new StringBuilder();
sb.append(USER_NAME).append("=").append(getUserName()).append(ATTR_SEPARATOR);
sb.append(PRINCIPAL).append("=").append(getName()).append(ATTR_SEPARATOR);
sb.append(TYPE).append("=").append(getType()).append(ATTR_SEPARATOR);