DATAMONGO-1943 - Polishing.
Reduce visibility. Use List interface instead of concrete type. Original pull request: #556.
This commit is contained in:
@@ -236,13 +236,13 @@ class SpringDataMongodbSerializer extends MongodbSerializer {
|
|||||||
return property;
|
return property;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object toQuerydslMongoType(Object source) {
|
private Object toQuerydslMongoType(Object source) {
|
||||||
|
|
||||||
Object target = converter.convertToMongoType(source);
|
Object target = converter.convertToMongoType(source);
|
||||||
|
|
||||||
if (target instanceof List) {
|
if (target instanceof List) {
|
||||||
|
|
||||||
BasicDBList newList = new BasicDBList();
|
List<Object> newList = new BasicDBList();
|
||||||
|
|
||||||
for (Object item : (List) target) {
|
for (Object item : (List) target) {
|
||||||
if (item instanceof Document) {
|
if (item instanceof Document) {
|
||||||
|
|||||||
Reference in New Issue
Block a user