Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 1037:3c4c7cc7904f
rename Buffer.hasContent() to hasRemaining()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 03 Nov 2016 21:54:34 -0600 |
parents | 35d04ac3fd0b |
children | 2b769da7f67d |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java Thu Nov 03 21:42:41 2016 -0600 +++ b/src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java Thu Nov 03 21:54:34 2016 -0600 @@ -169,7 +169,7 @@ int l = super.flush(header, buffer, trailer); // If there was something to write and it wasn't written, then we are not writable. - if (l==0 && ( header!=null && header.hasContent() || buffer!=null && buffer.hasContent() || trailer!=null && trailer.hasContent())) + if (l==0 && ( header!=null && header.hasRemaining() || buffer!=null && buffer.hasRemaining() || trailer!=null && trailer.hasRemaining())) { synchronized (this) { @@ -191,7 +191,7 @@ int l = super.flush(buffer); // If there was something to write and it wasn't written, then we are not writable. - if (l==0 && buffer!=null && buffer.hasContent()) + if (l==0 && buffer!=null && buffer.hasRemaining()) { synchronized (this) {