Skip to content

Commit 3c4f787

Browse files
committed
Use StringBuilder instead of StringBuffer
Synchronization is not needed in this static context.
1 parent e78fc1f commit 3c4f787

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/fasterxml/jackson/core/Base64Variants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public final class Base64Variants
6464
*/
6565
public final static Base64Variant MODIFIED_FOR_URL;
6666
static {
67-
StringBuffer sb = new StringBuffer(STD_BASE64_ALPHABET);
67+
StringBuilder sb = new StringBuilder(STD_BASE64_ALPHABET);
6868
// Replace plus with hyphen, slash with underscore (and no padding)
6969
sb.setCharAt(sb.indexOf("+"), '-');
7070
sb.setCharAt(sb.indexOf("/"), '_');

0 commit comments

Comments
 (0)