Skip to content

Commit 6b10ef5

Browse files
committed
DataHandle#readLine() use StringBuilder instead of StringBuffer
- StringBuilder is faster and recommended for most cases
1 parent eab8491 commit 6b10ef5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/scijava/io/handle/DataHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ default double readDouble() throws IOException {
563563
default String readLine() throws IOException {
564564
// NB: Adapted from java.io.RandomAccessFile.readLine().
565565

566-
final StringBuffer input = new StringBuffer();
566+
final StringBuilder input = new StringBuilder();
567567
int c = -1;
568568
boolean eol = false;
569569

0 commit comments

Comments
 (0)