Skip to content

Commit de160eb

Browse files
committed
Fix for compile warning as 1.6 doesnt have @SafeVarargs
1 parent 8c727ef commit de160eb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

driver/src/main/com/mongodb/QueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public QueryBuilder withinCenterSphere(final double longitude, final double lati
332332
@SuppressWarnings("unchecked")
333333
public QueryBuilder withinBox(final double x, final double y, final double x2, final double y2) {
334334
addOperand(QueryOperators.WITHIN,
335-
new BasicDBObject(QueryOperators.BOX, asList(asList(x, y), asList(x2, y2))));
335+
new BasicDBObject(QueryOperators.BOX, new Object[]{new Double[]{x, y}, new Double[]{x2, y2}}));
336336
return this;
337337
}
338338

0 commit comments

Comments
 (0)