change if to assert

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1496945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-06-26 14:27:48 +00:00
parent 31f7bb5262
commit 47dddb99e8
1 changed files with 3 additions and 3 deletions

View File

@ -208,9 +208,9 @@ public class DrillSideways {
requests.add(fr); requests.add(fr);
} }
} }
if (requests.isEmpty()) { // We already moved all drill-downs that didn't have a
throw new IllegalArgumentException("could not find FacetRequest for drill-sideways dimension \"" + dim + "\""); // FacetRequest, in moveDrillDownOnlyClauses above:
} assert !requests.isEmpty();
drillSidewaysCollectors[idx++] = FacetsCollector.create(getDrillSidewaysAccumulator(dim, new FacetSearchParams(fsp.indexingParams, requests))); drillSidewaysCollectors[idx++] = FacetsCollector.create(getDrillSidewaysAccumulator(dim, new FacetSearchParams(fsp.indexingParams, requests)));
} }