We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a4a47 commit a6373b8Copy full SHA for a6373b8
src/main/com/mongodb/Response.java
@@ -56,12 +56,14 @@ class Response {
56
57
DBCallback c = collection.getDB().getMongo().getMongoOptions().dbCallbackFactory.create( collection );
58
59
- for ( int i=0; i<_num; i++ ){
+ for ( int i=0; i < _num; i++ ){
60
if ( user._toGo < 5 )
61
throw new IOException( "should have more objects, but only " + user._toGo + " bytes left" );
62
c.reset();
63
decoder.decode( user , c );
64
- _objects.add( c.dbget() );
+
65
+ // TODO: By moving to generics, you can remove these casts (and requirement to impl DBOBject).
66
+ _objects.add( (DBObject)c.get() );
67
}
68
69
if ( user._toGo != 0 )
0 commit comments