[JAVA-1407] List parameters should be generalized Created: 25/Aug/14  Updated: 23/Jun/15  Resolved: 15/Jan/15

Status: Closed
Project: Java Driver
Component/s: API
Affects Version/s: None
Fix Version/s: 3.0.0

Type: Improvement Priority: Minor - P4
Reporter: David Golub Assignee: Jeffrey Yemin
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by JAVA-1476 Make DBCollection insert(List...) met... Closed

 Description   

The Java driver function DBCollection.aggregate takes in a List<DBObject>, which has the consequence that you'll get a compiler error if you pass in a List<BasicDBObject> instead. This issue could be eliminated by changing the function to take List<? extends DBObject> instead. It appears that similar issues exist for DBCollection.explainAggregate and DBCollection.insert.



 Comments   
Comment by Jeffrey Yemin [ 31/Mar/15 ]

Closing all resolved 3.0.0 issues, as 3.0.0 has been tagged and released.

Comment by Githook User [ 30/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Generalized type parameters in DBCollection methods so that, for example a List<BasicDBObject> can be passed as an argument.

JAVA-1407
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/ec9adae9fa86db784aafcde612001c10072f1da1

Comment by Githook User [ 15/Jan/15 ]

Author:

{u'username': u'jyemin', u'name': u'Jeff Yemin', u'email': u'jeff.yemin@10gen.com'}

Message: Generalized type parameters in DBCollection methods so that, for example a List<BasicDBObject> can be passed as an argument.

JAVA-1407
Branch: 3.0.x
https://github.com/mongodb/mongo-java-driver/commit/ec9adae9fa86db784aafcde612001c10072f1da1

Generated at Thu Feb 08 08:54:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.