Java methods append() and put()

52 views
Skip to first unread message

Victor Song

unread,
Mar 14, 2011, 9:49:25 PM3/14/11
to mongodb-user
Hi, in the Java driver, why does BasicBSONObject need to override its
super's method put(), and why does BasicDBObject need to override its
super's method append()?

Scott Hernandez

unread,
Mar 14, 2011, 10:02:02 PM3/14/11
to mongod...@googlegroups.com
I looked at the code; there doesn't seem to be any special reason; it
is probably a remnant from before it extended *Map. Does it cause
problems for you?

> --
> You received this message because you are subscribed to the Google Groups "mongodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-user?hl=en.
>
>

Arthur Neves

unread,
Feb 5, 2014, 8:54:09 PM2/5/14
to mongod...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages