mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8293008: Replace uses of StringBuffer with StringBuilder in MergeCollation
Reviewed-by: rriggs, naoto, bpb
This commit is contained in:
parent
5d6779f709
commit
0d51f63a2e
2 changed files with 9 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -86,7 +86,7 @@ final class MergeCollation {
|
|||
* before & and <
|
||||
*/
|
||||
public String getPattern(boolean withWhiteSpace) {
|
||||
StringBuffer result = new StringBuffer();
|
||||
StringBuilder result = new StringBuilder();
|
||||
PatternEntry tmp = null;
|
||||
ArrayList<PatternEntry> extList = null;
|
||||
int i;
|
||||
|
@ -146,7 +146,7 @@ final class MergeCollation {
|
|||
* builder.
|
||||
*/
|
||||
public String emitPattern(boolean withWhiteSpace) {
|
||||
StringBuffer result = new StringBuffer();
|
||||
StringBuilder result = new StringBuilder();
|
||||
for (int i = 0; i < patterns.size(); ++i)
|
||||
{
|
||||
PatternEntry entry = patterns.get(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue