diff options
Diffstat (limited to 'src/java/com/healthmarketscience/jackcess/Index.java')
-rw-r--r-- | src/java/com/healthmarketscience/jackcess/Index.java | 14 |
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; } |