From ed9f594f27e8e6c460a7c0358a80844c2c5914f3 Mon Sep 17 00:00:00 2001 From: Kelvin Tan Date: Mon, 17 May 2004 13:45:05 +0000 Subject: [PATCH] Ack. Left out the type cast. git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150983 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/java/org/apache/lucene/misc/ChainedFilter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java b/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java index 057375901cd..bc75a24b5c3 100644 --- a/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java +++ b/sandbox/contributions/miscellaneous/src/java/org/apache/lucene/misc/ChainedFilter.java @@ -174,7 +174,7 @@ public class ChainedFilter extends Filter */ if (logic == AND) { - result = chain[i].bits(reader).clone(); + result = (BitSet) chain[i].bits(reader).clone(); ++i; } else @@ -209,7 +209,7 @@ public class ChainedFilter extends Filter */ if (logic[0] == AND) { - result = chain[i].bits(reader).clone(); + result = (BitSet) chain[i].bits(reader).clone(); ++i; } else