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

View File

@ -128,7 +128,7 @@ public boolean isExpired() {
* 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);