]> source.dussan.org Git - jackcess.git/commitdiff
minor code cleanups
authorJames Ahlborn <jtahlborn@yahoo.com>
Wed, 16 Apr 2008 19:04:45 +0000 (19:04 +0000)
committerJames Ahlborn <jtahlborn@yahoo.com>
Wed, 16 Apr 2008 19:04:45 +0000 (19:04 +0000)
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@332 f203690c-595d-4dc9-a70b-905162fa7fd2

src/java/com/healthmarketscience/jackcess/Index.java

index 66f189a877a401e6a92a82916792d19ece486352..536389445b0135013fc6b2a2ab64924ad8702345 100644 (file)
@@ -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;
     }