You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "PJ Fanning (Jira)" <ji...@apache.org> on 2024/03/30 15:58:00 UTC

[jira] [Created] (HADOOP-19134) use StringBuilder instead of StringBuffer

PJ Fanning created HADOOP-19134:
-----------------------------------

             Summary: use StringBuilder instead of StringBuffer
                 Key: HADOOP-19134
                 URL: https://issues.apache.org/jira/browse/HADOOP-19134
             Project: Hadoop Common
          Issue Type: Improvement
            Reporter: PJ Fanning


StringBuilder is basically the same as StringBuffer but doesn't use synchronized. String appending rarely needs locking like this.

There are some public and package private APIs that use StringBuffers as input or return types - I have left these alone for compatibility reasons.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-dev-help@hadoop.apache.org