File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
client/src/main/java/org/asynchttpclient/util Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1818
1919public final class StringUtils {
2020
21- private static final ThreadLocal <StringBuilder > STRING_BUILDERS = new ThreadLocal <StringBuilder >() {
21+ private static final ThreadLocal <StringBuilder > STRING_BUILDER_POOL = new ThreadLocal <StringBuilder >() {
2222 protected StringBuilder initialValue () {
2323 return new StringBuilder (512 );
2424 }
@@ -29,13 +29,12 @@ protected StringBuilder initialValue() {
2929 * @return a pooled StringBuilder
3030 */
3131 public static StringBuilder stringBuilder () {
32- StringBuilder sb = STRING_BUILDERS .get ();
32+ StringBuilder sb = STRING_BUILDER_POOL .get ();
3333 sb .setLength (0 );
3434 return sb ;
3535 }
3636
3737 private StringUtils () {
38- // unused
3938 }
4039
4140 public static ByteBuffer charSequence2ByteBuffer (CharSequence cs , Charset charset ) {
You can’t perform that action at this time.
0 commit comments