LUCENE-1839: change explain from abstract to throw UnsupportedOperationException

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@806892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-08-22 21:05:31 +00:00
parent 8e4e7e17d0
commit bd565a3917
1 changed files with 5 additions and 4 deletions

View File

@ -23,9 +23,8 @@ import java.io.IOException;
* Expert: Common scoring functionality for different types of queries.
*
* <p>
* A <code>Scorer</code> either iterates over documents matching a
* query in increasing order of doc Id, or provides an explanation of
* the score for a query for a given document.
* A <code>Scorer</code> iterates over documents matching a
* query in increasing order of doc Id.
* </p>
* <p>
* Document scores are computed using a given <code>Similarity</code>
@ -129,6 +128,8 @@ public abstract class Scorer extends DocIdSetIterator {
* @deprecated Please use {@link IndexSearcher#explain}
* or {@link Weight#explain} instead.
*/
public abstract Explanation explain(int doc) throws IOException;
public Explanation explain(int doc) throws IOException {
throw new UnsupportedOperationException();
}
}