diff options
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/PageChannel.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/PageChannel.java b/src/java/com/healthmarketscience/jackcess/PageChannel.java index 518007a..083d608 100644 --- a/src/java/com/healthmarketscience/jackcess/PageChannel.java +++ b/src/java/com/healthmarketscience/jackcess/PageChannel.java @@ -306,9 +306,7 @@ public class PageChannel implements Channel, Flushable { * @return A newly-allocated buffer of the given size and byte order */ public ByteBuffer createBuffer(int size, ByteOrder order) { - ByteBuffer rtn = ByteBuffer.allocate(size); - rtn.order(order); - return rtn; + return ByteBuffer.allocate(size).order(order); } public void flush() throws IOException { |