author | mduigou |
Fri, 18 Jul 2014 08:54:28 -0700 | |
changeset 25658 | 7a6a01c13279 |
parent 25657 | 659ec6a877c0 |
child 25659 | 14764f69ed82 |
jdk/src/share/classes/java/nio/StringCharBuffer.java | file | annotate | diff | comparison | revisions |
--- a/jdk/src/share/classes/java/nio/StringCharBuffer.java Fri Jul 18 17:23:28 2014 +0200 +++ b/jdk/src/share/classes/java/nio/StringCharBuffer.java Fri Jul 18 08:54:28 2014 -0700 @@ -100,7 +100,7 @@ } final String toString(int start, int end) { - return str.toString().substring(start + offset, end + offset); + return str.subSequence(start + offset, end + offset).toString(); } public final CharBuffer subSequence(int start, int end) {