From 7e5a4cd67e19dc227ed36fa62f5a36846949926b Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 28 May 2010 19:51:22 +0000 Subject: [PATCH] remove unnecessary final modifiers git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@949270 13f79535-47bb-0310-9956-ffa450edef68 --- .../standard/SimpleStandardTermsIndexReader.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java b/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java index 4a99b692163..266cccf8c11 100644 --- a/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java +++ b/lucene/src/java/org/apache/lucene/index/codecs/standard/SimpleStandardTermsIndexReader.java @@ -206,7 +206,7 @@ public class SimpleStandardTermsIndexReader extends StandardTermsIndexReader { } @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 SimpleStandardTermsIndexReader extends StandardTermsIndexReader { } @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 SimpleStandardTermsIndexReader extends StandardTermsIndexReader { } } - 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 SimpleStandardTermsIndexReader extends StandardTermsIndexReader { } } - 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 SimpleStandardTermsIndexReader extends StandardTermsIndexReader { 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 SimpleStandardTermsIndexReader extends StandardTermsIndexReader { 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;