From f340f01a636f8d44dfe63677b57c483ad25a2134 Mon Sep 17 00:00:00 2001 From: James Ahlborn Date: Wed, 16 Apr 2008 19:04:45 +0000 Subject: [PATCH] minor code cleanups git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@332 f203690c-595d-4dc9-a70b-905162fa7fd2 --- .../com/healthmarketscience/jackcess/Index.java | 14 ++++++-------- 1 file 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 { 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 { return Index.this; } - private final int getIndexModCount() { + private int getIndexModCount() { return Index.this._modCount; } -- 2.39.5