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 18
18
19
19
public final class StringUtils {
20
20
21
- private static final ThreadLocal <StringBuilder > STRING_BUILDERS = new ThreadLocal <StringBuilder >() {
21
+ private static final ThreadLocal <StringBuilder > STRING_BUILDER_POOL = new ThreadLocal <StringBuilder >() {
22
22
protected StringBuilder initialValue () {
23
23
return new StringBuilder (512 );
24
24
}
@@ -29,13 +29,12 @@ protected StringBuilder initialValue() {
29
29
* @return a pooled StringBuilder
30
30
*/
31
31
public static StringBuilder stringBuilder () {
32
- StringBuilder sb = STRING_BUILDERS .get ();
32
+ StringBuilder sb = STRING_BUILDER_POOL .get ();
33
33
sb .setLength (0 );
34
34
return sb ;
35
35
}
36
36
37
37
private StringUtils () {
38
- // unused
39
38
}
40
39
41
40
public static ByteBuffer charSequence2ByteBuffer (CharSequence cs , Charset charset ) {
You can’t perform that action at this time.
0 commit comments