Skip to content
This repository has been archived by the owner on Feb 11, 2024. It is now read-only.

Commit

Permalink
Update S3Escaper.java
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhsw authored Feb 2, 2024
1 parent 93d70ff commit 586f3d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/kzhsw/S3Escaper.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static String encodeOptimized(String str) {
}

str = ESCAPER.escape(str);
StringBuilder encoded = new StringBuilder(str.length() + Math.max(str.length >> 3, 4));
StringBuilder encoded = new StringBuilder(str.length() + Math.max(str.length() >> 3, 4));

for (char ch : str.toCharArray()) {
switch (ch) {
Expand Down

0 comments on commit 586f3d7

Please sign in to comment.