mongodb/mongo-java-driver — pull request #232 by cakofony (2014-07-23 13:48:33+00:00)
Title: Add isValidatingDBObjects and setValidateDBObjects to DBCollection

In some cases, validation can be computationally expensive and
unnecessary. In other situations, a DBEncoder might be in
use which takes invalid data and transforms it into something
valid for mongo. Ultimately it would be preferable if enough
was exposed that I could subclass DBCollection.