minor followup to LUCENE-857, fixing a small mistake in Otis's orriginal commit to ensure that the deprecated QueryFilter still cache's

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@528298 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2007-04-13 00:59:28 +00:00
parent 78a3a8a677
commit 866b626f67
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@ package org.apache.lucene.search;
* @version $Id$
* @deprecated use a CachingWrapperFilter with QueryWrapperFilter
*/
public class QueryFilter extends QueryWrapperFilter {
public class QueryFilter extends CachingWrapperFilter {
/** Constructs a filter which only matches documents matching
* <code>query</code>.
*/
public QueryFilter(Query query) {
super(query);
super(new QueryWrapperFilter(query));
}
public boolean equals(Object o) {