You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2010/05/28 21:51:23 UTC

svn commit: r949270 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java

Author: mikemccand
Date: Fri May 28 19:51:22 2010
New Revision: 949270

URL: http://svn.apache.org/viewvc?rev=949270&view=rev
Log:
remove unnecessary final modifiers

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java?rev=949270&r1=949269&r2=949270&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java (original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java Fri May 28 19:51:22 2010
@@ -206,7 +206,7 @@ public class SimpleStandardTermsIndexRea
     }
 
     @Override
-    public final void getIndexOffset(BytesRef term, TermsIndexResult result) throws IOException {
+    public void getIndexOffset(BytesRef term, TermsIndexResult result) throws IOException {
       // You must call loadTermsIndex if you had specified -1 for indexDivisor
       if (coreIndex == null) {
         throw new IllegalStateException("terms index was not loaded");
@@ -215,7 +215,7 @@ public class SimpleStandardTermsIndexRea
     }
 
     @Override
-    public final void getIndexOffset(long ord, TermsIndexResult result) throws IOException {
+    public void getIndexOffset(long ord, TermsIndexResult result) throws IOException {
       // You must call loadTermsIndex if you had specified -1 for indexDivisor
       if (coreIndex == null) {
         throw new IllegalStateException("terms index was not loaded");
@@ -334,7 +334,7 @@ public class SimpleStandardTermsIndexRea
         }
       }
 
-      public final boolean nextIndexTerm(long ord, TermsIndexResult result) throws IOException {
+      public boolean nextIndexTerm(long ord, TermsIndexResult result) throws IOException {
         int idx = 1 + (int) (ord / totalIndexInterval);
         if (idx < numIndexTerms) {
           fillResult(idx, result);
@@ -344,7 +344,7 @@ public class SimpleStandardTermsIndexRea
         }
       }
 
-      private final void fillResult(int idx, TermsIndexResult result) {
+      private void fillResult(int idx, TermsIndexResult result) {
         final long offset = termOffsets.get(idx);
         final int length = (int) (termOffsets.get(1+idx) - offset);
         termBytes.fill(result.term, termBytesStart + offset, length);
@@ -352,7 +352,7 @@ public class SimpleStandardTermsIndexRea
         result.offset = termsStart + termsDictOffsets.get(idx);
       }
 
-      public final void getIndexOffset(BytesRef term, TermsIndexResult result) throws IOException {
+      public void getIndexOffset(BytesRef term, TermsIndexResult result) throws IOException {
         int lo = 0;					  // binary search
         int hi = numIndexTerms - 1;
 
@@ -388,7 +388,7 @@ public class SimpleStandardTermsIndexRea
         result.offset = termsStart + termsDictOffsets.get(hi);
       }
 
-      public final void getIndexOffset(long ord, TermsIndexResult result) throws IOException {
+      public void getIndexOffset(long ord, TermsIndexResult result) throws IOException {
         int idx = (int) (ord / totalIndexInterval);
         // caller must ensure ord is in bounds
         assert idx < numIndexTerms;