Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 502e38e commit 42083bcCopy full SHA for 42083bc
sources/net.sf.j2s.java.core/src/java/lang/AbstractStringBuilder.java
@@ -534,7 +534,7 @@ public String substring(int start) {
534
return "";
535
536
shared = true;
537
- return new String(start, count - start, value);
+ return new String(value, start, count - start);
538
}
539
throw new StringIndexOutOfBoundsException(start);
540
@@ -578,7 +578,7 @@ public String toString() {
578
if (count >= 256 && count <= (value.length >> 1))
579
return new String(value, 0, count);
580
581
- return new String(0, count, value);
+ return new String(value, 0, count);
582
583
584
/**
0 commit comments