LUCENE-6778: just use this.radius

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709478 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2015-10-19 21:11:54 +00:00
parent 06ef8111bd
commit 27c07ec8e3
1 changed files with 0 additions and 9 deletions

View File

@ -45,15 +45,6 @@ public final class GeoPointDistanceRangeQuery extends GeoPointDistanceQuery {
return q;
}
final double radius;
if (q instanceof BooleanQuery) {
final List<BooleanClause> clauses = ((BooleanQuery)q).clauses();
assert clauses.size() > 0;
radius = ((GeoPointDistanceQueryImpl)(clauses.get(0).getQuery())).getRadius();
} else {
radius = ((GeoPointDistanceQueryImpl)q).getRadius();
}
// add an exclusion query
BooleanQuery.Builder bqb = new BooleanQuery.Builder();