comparison src/org/eclipse/jetty/io/AbstractBuffer.java @ 1027:6d17a257b03f

remove Buffer.asImmutableBuffer()
author Franklin Schmidt <fschmidt@gmail.com>
date Wed, 02 Nov 2016 23:58:37 -0600
parents 6647dbc8be71
children 4e5e9e3c25b3
comparison
equal deleted inserted replaced
1026:6647dbc8be71 1027:6d17a257b03f
86 private ByteArrayBuffer duplicate(int access) 86 private ByteArrayBuffer duplicate(int access)
87 { 87 {
88 return new ByteArrayBuffer(asArray(), 0, length(), access); 88 return new ByteArrayBuffer(asArray(), 0, length(), access);
89 } 89 }
90 90
91 public Buffer asImmutableBuffer()
92 {
93 if (isImmutable()) return this;
94 return duplicate(IMMUTABLE);
95 }
96
97 /* 91 /*
98 * @see org.eclipse.util.Buffer#asReadOnlyBuffer() 92 * @see org.eclipse.util.Buffer#asReadOnlyBuffer()
99 */ 93 */
100 public Buffer asReadOnlyBuffer() 94 public Buffer asReadOnlyBuffer()
101 { 95 {