mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-19 16:59:51 +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
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuffer queueString = new StringBuffer(elementCount);
|
StringBuilder queueString = new StringBuilder(elementCount);
|
||||||
if (queueFront < queueRear) {
|
if (queueFront < queueRear) {
|
||||||
queueString.append(queueElements, queueFront, elementCount);
|
queueString.append(queueElements, queueFront, elementCount);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -85,7 +85,7 @@ public class StringReplaceReader extends FilterReader implements Cloneable {
|
||||||
* Returns the entire contents of the input stream.
|
* Returns the entire contents of the input stream.
|
||||||
*/
|
*/
|
||||||
public String contents() throws IOException {
|
public String contents() throws IOException {
|
||||||
StringBuffer contents = new StringBuffer(1024);
|
StringBuilder contents = new StringBuilder(1024);
|
||||||
int readSize = 512;
|
int readSize = 512;
|
||||||
|
|
||||||
char[] filteredChars = new char[readSize];
|
char[] filteredChars = new char[readSize];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue