summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2008-04-16 19:04:45 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2008-04-16 19:04:45 +0000
commitf340f01a636f8d44dfe63677b57c483ad25a2134 (patch)
tree16ca397bc235b7d6b426dcc92673dd6124b643c2
parentfa480ea0c415dbd00d3f52680385374b33ba8ce3 (diff)
downloadjackcess-f340f01a636f8d44dfe63677b57c483ad25a2134.tar.gz
jackcess-f340f01a636f8d44dfe63677b57c483ad25a2134.zip
minor code cleanups
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@332 f203690c-595d-4dc9-a70b-905162fa7fd2
-rw-r--r--src/java/com/healthmarketscience/jackcess/Index.java14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/java/com/healthmarketscience/jackcess/Index.java b/src/java/com/healthmarketscience/jackcess/Index.java
index 66f189a..5363894 100644
--- a/src/java/com/healthmarketscience/jackcess/Index.java
+++ b/src/java/com/healthmarketscience/jackcess/Index.java
@@ -833,13 +833,11 @@ public abstract class Index implements Comparable<Index> {
entries.add(entry);
- if(entries.size() == 1) {
- if(entryPrefixLength > 0) {
- // read any shared entry prefix
- entryPrefix = new byte[entryPrefixLength];
- buffer.position(entryPos + lastStart);
- buffer.get(entryPrefix);
- }
+ if((entries.size() == 1) && (entryPrefixLength > 0)) {
+ // read any shared entry prefix
+ entryPrefix = new byte[entryPrefixLength];
+ buffer.position(entryPos + lastStart);
+ buffer.get(entryPrefix);
}
lastStart += length;
@@ -1818,7 +1816,7 @@ public abstract class Index implements Comparable<Index> {
return Index.this;
}
- private final int getIndexModCount() {
+ private int getIndexModCount() {
return Index.this._modCount;
}