mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-05 16:15:54 +00:00
StringBuilder.append() supports slicing
This commit is contained in:
1 parent
e5928360a1
commit
11f301b5ee
4 files changed
+4
-4
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user