mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 00:39:58 +00:00
Replace two usages of StringBuffer with StringBuilder.
This commit is contained in:
parent
39dba0d976
commit
49f6572fe4
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ final public class CharQueue {
|
|||
*/
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer queueString = new StringBuffer(elementCount);
|
||||
StringBuilder queueString = new StringBuilder(elementCount);
|
||||
if (queueFront < queueRear) {
|
||||
queueString.append(queueElements, queueFront, elementCount);
|
||||
} else {
|
||||
|
|
|
@ -85,7 +85,7 @@ public class StringReplaceReader extends FilterReader implements Cloneable {
|
|||
* Returns the entire contents of the input stream.
|
||||
*/
|
||||
public String contents() throws IOException {
|
||||
StringBuffer contents = new StringBuffer(1024);
|
||||
StringBuilder contents = new StringBuilder(1024);
|
||||
int readSize = 512;
|
||||
|
||||
char[] filteredChars = new char[readSize];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue