Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/BufferUtil.java @ 1068:9d357b9e4bcb
fix BufferUtil.newBuffer()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 10 Nov 2016 00:23:05 -0700 |
parents | bbbda7c6e8ec |
children | 6b7ff30bb990 |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/BufferUtil.java Thu Nov 10 00:08:39 2016 -0700 +++ b/src/org/eclipse/jetty/io/BufferUtil.java Thu Nov 10 00:23:05 2016 -0700 @@ -213,13 +213,11 @@ public static JBuffer newBuffer(int size) { ByteBuffer bb = ByteBuffer.allocate(size); - bb.limit(0); return new JBuffer(bb); } public static JBuffer newDirectBuffer(int size) { ByteBuffer bb = ByteBuffer.allocateDirect(size); - bb.limit(0); return new JBuffer(bb); }