Skip to content

Apache Lucene open-source search software

LUCENE-2507: Fix Java 1.5 violation thanks to hudson with 1.5 :-)

Uwe Schindlerc040dcb6e72d
diff --git a/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java b/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
index 73eee465cd5..e0d829e78a7 100644
--- a/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
+++ b/lucene/contrib/spellchecker/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
@@ -66,7 +66,6 @@ public class DirectSpellChecker {
* </ul>
*/
public static final StringDistance INTERNAL_LEVENSHTEIN = new StringDistance() {
- @Override
public float getDistance(String s1, String s2) {
throw new UnsupportedOperationException("Not for external use.");
}};