From: James Ahlborn Date: Sun, 20 Mar 2011 21:13:15 +0000 (+0000) Subject: minor cleanup X-Git-Tag: jackcess-1.2.4~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=28f8e998fb4d56a62d633c6eda8fbb32a907a916;p=jackcess.git minor cleanup git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@532 f203690c-595d-4dc9-a70b-905162fa7fd2 --- 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 {