comparison src/org/eclipse/jetty/http/AbstractGenerator.java @ 1039:a7319f14ba1e

remove Buffer.isImmutable()
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 22:55:28 -0600
parents b71ad168fe34
children a8c92b0a08ed
comparison
equal deleted inserted replaced
1038:b71ad168fe34 1039:a7319f14ba1e
243 243
244 public boolean isBufferFull() 244 public boolean isBufferFull()
245 { 245 {
246 if (_buffer != null && _buffer.space()==0) 246 if (_buffer != null && _buffer.space()==0)
247 { 247 {
248 if (_buffer.remaining()==0 && !_buffer.isImmutable()) 248 if (_buffer.remaining()==0)
249 _buffer.compact(); 249 _buffer.compact();
250 return _buffer.space()==0; 250 return _buffer.space()==0;
251 } 251 }
252 252
253 return _content!=null && _content.remaining()>0; 253 return _content!=null && _content.remaining()>0;