mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8274879: Replace uses of StringBuffer with StringBuilder within java.base classes
Reviewed-by: naoto
This commit is contained in:
parent
e6fa5fa37e
commit
9a3e954299
11 changed files with 31 additions and 31 deletions
|
@ -1762,7 +1762,7 @@ final class UrlDeserializedState {
|
|||
|
||||
String reconstituteUrlString() {
|
||||
|
||||
// pre-compute length of StringBuffer
|
||||
// pre-compute length of StringBuilder
|
||||
int len = protocol.length() + 1;
|
||||
if (authority != null && !authority.isEmpty())
|
||||
len += 2 + authority.length();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue