Skip to content

Commit 42083bc

Browse files
committed
AbstractStringBuilder update
1 parent 502e38e commit 42083bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sources/net.sf.j2s.java.core/src/java/lang/AbstractStringBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ public String substring(int start) {
534534
return "";
535535

536536
shared = true;
537-
return new String(start, count - start, value);
537+
return new String(value, start, count - start);
538538
}
539539
throw new StringIndexOutOfBoundsException(start);
540540
}
@@ -578,7 +578,7 @@ public String toString() {
578578
if (count >= 256 && count <= (value.length >> 1))
579579
return new String(value, 0, count);
580580
shared = true;
581-
return new String(0, count, value);
581+
return new String(value, 0, count);
582582
}
583583

584584
/**

0 commit comments

Comments
 (0)