DATAMONGO-1491 - Polishing.

Remove variable before returning value. Add generics for list creation.

Original pull request: #412.
This commit is contained in:
Mark Paluch
2016-11-24 12:14:04 +01:00
parent 2985b4ca3d
commit 3dc1e9355a

View File

@@ -130,8 +130,7 @@ public interface AggregationExpressions {
}
NestedDelegatingExpressionAggregationOperationContext nea = new NestedDelegatingExpressionAggregationOperationContext(context);
DBObject mappedCondition = ((AggregationExpression) condition).toDbObject(nea);
return mappedCondition;
return ((AggregationExpression) condition).toDbObject(nea);
}
/**
@@ -223,7 +222,7 @@ public interface AggregationExpressions {
public AsBuilder filter(List<?> array) {
Assert.notNull(array, "Array must not be null!");
filter.input = new ArrayList(array);
filter.input = new ArrayList<Object>(array);
return this;
}
@@ -287,7 +286,5 @@ public interface AggregationExpressions {
return filter;
}
}
}
}