mongodb/mongo-java-driver — pull request #233 by guoyr (2014-08-13 03:26:34+00:00)
Title: Reader type enforcement

Enforces getBsonType() only gets called when state is TYPE in the BsonDocumentReader. This ensures the DocumentReader, BinaryReader and JsonReader behave the same way.

code review http://codereview.10gen.com/5117360696459264/