From 28f8e998fb4d56a62d633c6eda8fbb32a907a916 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Sun, 20 Mar 2011 21:13:15 +0000 Subject: [PATCH] minor cleanup git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@532 f203690c-595d-4dc9-a70b-905162fa7fd2 --- src/java/com/healthmarketscience/jackcess/PageChannel.java | 4 +--- 1 file changed, 1 insertion(+), 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 { -- 2.39.5