mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +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
|
@ -1297,7 +1297,7 @@ public final class SocketPermission extends Permission
|
|||
/*
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer s = new StringBuffer(super.toString() + "\n" +
|
||||
StringBuilder s = new StringBuilder(super.toString() + "\n" +
|
||||
"cname = " + cname + "\n" +
|
||||
"wildcard = " + wildcard + "\n" +
|
||||
"invalid = " + invalid + "\n" +
|
||||
|
|
|
@ -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