mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +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
|
@ -94,7 +94,7 @@ public class JulianCalendar extends BaseCalendar {
|
|||
public String toString() {
|
||||
String time = super.toString();
|
||||
time = time.substring(time.indexOf('T'));
|
||||
StringBuffer sb = new StringBuffer();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Era era = getEra();
|
||||
if (era != null) {
|
||||
String n = era.getAbbreviation();
|
||||
|
|
|
@ -123,7 +123,7 @@ public class LocalGregorianCalendar extends BaseCalendar {
|
|||
public String toString() {
|
||||
String time = super.toString();
|
||||
time = time.substring(time.indexOf('T'));
|
||||
StringBuffer sb = new StringBuffer();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Era era = getEra();
|
||||
if (era != null) {
|
||||
String abbr = era.getAbbreviation();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue