From 2685859da2ff237372f8b87118a8347938ea8ad3 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 28 Dec 2009 16:46:09 +0000 Subject: [PATCH] add missing @override annotations git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@894202 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/lucene/benchmark/byTask/tasks/TaskSequence.java | 1 + .../lucene/store/instantiated/InstantiatedAllTermDocs.java | 1 + .../org/apache/lucene/queryParser/ext/TestExtensions.java | 1 + src/java/org/apache/lucene/index/AllTermDocs.java | 1 + .../apache/lucene/queryParser/MultiFieldQueryParser.java | 6 ++++++ src/test/org/apache/lucene/index/TestIndexWriter.java | 1 + .../apache/lucene/util/cache/TestDoubleBarrelLRUCache.java | 1 + 7 files changed, 12 insertions(+) diff --git a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java index d9fd38b7f80..57b77e32e7b 100644 --- a/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java +++ b/contrib/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java @@ -156,6 +156,7 @@ public class TaskSequence extends PerfTask { return count; } + @Override public void run() { try { count = task.runAndMaybeStats(letChildReport); diff --git a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedAllTermDocs.java b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedAllTermDocs.java index 70f4280f5be..24d8cca12d1 100644 --- a/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedAllTermDocs.java +++ b/contrib/instantiated/src/java/org/apache/lucene/store/instantiated/InstantiatedAllTermDocs.java @@ -28,6 +28,7 @@ class InstantiatedAllTermDocs extends AbstractAllTermDocs { this.reader = reader; } + @Override public boolean isDeleted(int doc) { return reader.isDeleted(doc); } diff --git a/contrib/misc/src/test/org/apache/lucene/queryParser/ext/TestExtensions.java b/contrib/misc/src/test/org/apache/lucene/queryParser/ext/TestExtensions.java index bcfee1b5e53..8c061b6ae65 100644 --- a/contrib/misc/src/test/org/apache/lucene/queryParser/ext/TestExtensions.java +++ b/contrib/misc/src/test/org/apache/lucene/queryParser/ext/TestExtensions.java @@ -26,6 +26,7 @@ public class TestExtensions extends LuceneTestCase { private Extensions ext; + @Override protected void setUp() throws Exception { super.setUp(); this.ext = new Extensions(); diff --git a/src/java/org/apache/lucene/index/AllTermDocs.java b/src/java/org/apache/lucene/index/AllTermDocs.java index fac6d55c4ea..762f0218f38 100644 --- a/src/java/org/apache/lucene/index/AllTermDocs.java +++ b/src/java/org/apache/lucene/index/AllTermDocs.java @@ -30,6 +30,7 @@ class AllTermDocs extends AbstractAllTermDocs { } } + @Override public boolean isDeleted(int doc) { return deletedDocs != null && deletedDocs.get(doc); } diff --git a/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java b/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java index e6a10fb5791..90f1b5fa755 100644 --- a/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java +++ b/src/java/org/apache/lucene/queryParser/MultiFieldQueryParser.java @@ -96,6 +96,7 @@ public class MultiFieldQueryParser extends QueryParser this.fields = fields; } + @Override protected Query getFieldQuery(String field, String queryText, int slop) throws ParseException { if (field == null) { List clauses = new ArrayList(); @@ -132,11 +133,13 @@ public class MultiFieldQueryParser extends QueryParser } + @Override protected Query getFieldQuery(String field, String queryText) throws ParseException { return getFieldQuery(field, queryText, 0); } + @Override protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException { if (field == null) { @@ -150,6 +153,7 @@ public class MultiFieldQueryParser extends QueryParser return super.getFuzzyQuery(field, termStr, minSimilarity); } + @Override protected Query getPrefixQuery(String field, String termStr) throws ParseException { if (field == null) { @@ -163,6 +167,7 @@ public class MultiFieldQueryParser extends QueryParser return super.getPrefixQuery(field, termStr); } + @Override protected Query getWildcardQuery(String field, String termStr) throws ParseException { if (field == null) { List clauses = new ArrayList(); @@ -176,6 +181,7 @@ public class MultiFieldQueryParser extends QueryParser } + @Override protected Query getRangeQuery(String field, String part1, String part2, boolean inclusive) throws ParseException { if (field == null) { List clauses = new ArrayList(); diff --git a/src/test/org/apache/lucene/index/TestIndexWriter.java b/src/test/org/apache/lucene/index/TestIndexWriter.java index 63f1fd3d77d..d8a2b319838 100644 --- a/src/test/org/apache/lucene/index/TestIndexWriter.java +++ b/src/test/org/apache/lucene/index/TestIndexWriter.java @@ -4633,6 +4633,7 @@ public class TestIndexWriter extends LuceneTestCase { for(int i=0;i