]> source.dussan.org Git - jackcess.git/commitdiff
minor cleanup
authorJames Ahlborn <jtahlborn@yahoo.com>
Sun, 20 Mar 2011 21:13:15 +0000 (21:13 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Sun, 20 Mar 2011 21:13:15 +0000 (21:13 +0000)
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

index 518007a79b9a8f9b740fbf43f1e6ca7841849151..083d608d4bfb2b847db07d59bafef200662f25d0 100644 (file)
@@ -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 {