StringBuilder.append() supports slicing

This commit is contained in:
Josh Soref committed 2019-02-21 00:23:53 -05:00
1 parent e5928360a1
commit 11f301b5ee
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -870,7 +870,7 @@ public class Util {
if (c > 122 || uriMap[c]) {
if (!escaped) {
out = new StringBuilder(i + (m - i) * 3);
out.append(s.substring(0, i));
out.append(s, 0, i);
enc = StandardCharsets.UTF_8.newEncoder();
buf = CharBuffer.allocate(1);
escaped = true;