aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/com/healthmarketscience
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2011-03-20 21:13:15 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2011-03-20 21:13:15 +0000
commit28f8e998fb4d56a62d633c6eda8fbb32a907a916 (patch)
tree19ad55dae58f4930881abe8b3c017a360aacad04 /src/java/com/healthmarketscience
parentb45b32f4a3288d3c3a999617bfd09c982b1ff346 (diff)
downloadjackcess-28f8e998fb4d56a62d633c6eda8fbb32a907a916.tar.gz
jackcess-28f8e998fb4d56a62d633c6eda8fbb32a907a916.zip
minor cleanup
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@532 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/java/com/healthmarketscience')
-rw-r--r--src/java/com/healthmarketscience/jackcess/PageChannel.java4
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 {