From: James Ahlborn Date: Wed, 19 Mar 2008 01:52:42 +0000 (+0000) Subject: minor cleanups X-Git-Tag: rel_1_1_13~7 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3a521419046aefb518087b6acc5a41960eacd7b2;p=jackcess.git minor cleanups git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@285 f203690c-595d-4dc9-a70b-905162fa7fd2 --- diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java index 5df3277..4307279 100644 --- a/src/java/com/healthmarketscience/jackcess/Index.java +++ b/src/java/com/healthmarketscience/jackcess/Index.java @@ -40,7 +40,6 @@ import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; -import java.util.SortedSet; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; diff --git a/src/java/com/healthmarketscience/jackcess/Table.java b/src/java/com/healthmarketscience/jackcess/Table.java index 96926cc..6523bc1 100644 --- a/src/java/com/healthmarketscience/jackcess/Table.java +++ b/src/java/com/healthmarketscience/jackcess/Table.java @@ -1125,12 +1125,11 @@ public class Table } } + ByteBuffer dataPage = null; int pageNumber = PageChannel.INVALID_PAGE_NUMBER; - int rowSize; // find last data page (Not bothering to check other pages for free // space.) - ByteBuffer dataPage = null; UsageMap.PageCursor revPageCursor = _ownedPages.cursor(); revPageCursor.afterLast(); while(true) { @@ -1156,7 +1155,7 @@ public class Table } for (int i = 0; i < rowData.length; i++) { - rowSize = rowData[i].remaining(); + int rowSize = rowData[i].remaining(); int rowSpaceUsage = getRowSpaceUsage(rowSize, getFormat()); short freeSpaceInPage = dataPage.getShort(getFormat().OFFSET_FREE_SPACE); if (freeSpaceInPage < rowSpaceUsage) {