< prev index next >

src/java.base/share/classes/java/nio/StringCharBuffer.java

Print this page
rev 57242 : imported patch 8234049.patch

*** 33,43 **** extends CharBuffer { CharSequence str; StringCharBuffer(CharSequence s, int start, int end) { // package-private ! super(-1, start, end, s.length()); int n = s.length(); Objects.checkFromToIndex(start, end, n); str = s; this.isReadOnly = true; } --- 33,43 ---- extends CharBuffer { CharSequence str; StringCharBuffer(CharSequence s, int start, int end) { // package-private ! super(-1, start, end, s.length(), null); int n = s.length(); Objects.checkFromToIndex(start, end, n); str = s; this.isReadOnly = true; }
*** 66,76 **** int mark, int pos, int limit, int cap, int offset) { ! super(mark, pos, limit, cap, null, offset); str = s; this.isReadOnly = true; } public CharBuffer duplicate() { --- 66,76 ---- int mark, int pos, int limit, int cap, int offset) { ! super(mark, pos, limit, cap, null, offset, null); str = s; this.isReadOnly = true; } public CharBuffer duplicate() {
< prev index next >