@@ -40,7 +40,7 @@ public abstract class AbstractBsonReader implements Closeable, BsonReader {
4040 private boolean closed ;
4141
4242 /**
43- * Initializes a new instance of the BSONReader class.
43+ * Initializes a new instance of the BsonReader class.
4444 *
4545 */
4646 protected AbstractBsonReader () {
@@ -154,7 +154,7 @@ public boolean readBoolean() {
154154 }
155155
156156 @ Override
157- public abstract BsonType readBSONType ();
157+ public abstract BsonType readBsonType ();
158158
159159 @ Override
160160 public long readDateTime () {
@@ -179,7 +179,7 @@ public void readEndArray() {
179179 throwInvalidContextType ("readEndArray" , getContext ().getContextType (), BsonContextType .ARRAY );
180180 }
181181 if (getState () == State .TYPE ) {
182- readBSONType (); // will set state to EndOfArray if at end of array
182+ readBsonType (); // will set state to EndOfArray if at end of array
183183 }
184184 if (getState () != State .END_OF_ARRAY ) {
185185 throwInvalidState ("ReadEndArray" , State .END_OF_ARRAY );
@@ -200,7 +200,7 @@ public void readEndDocument() {
200200 getContext ().getContextType (), BsonContextType .DOCUMENT , BsonContextType .SCOPE_DOCUMENT );
201201 }
202202 if (getState () == State .TYPE ) {
203- readBSONType (); // will set state to EndOfDocument if at end of document
203+ readBsonType (); // will set state to EndOfDocument if at end of document
204204 }
205205 if (getState () != State .END_OF_DOCUMENT ) {
206206 throwInvalidState ("readEndDocument" , State .END_OF_DOCUMENT );
@@ -413,7 +413,7 @@ public void readMinKey(final String name) {
413413 @ Override
414414 public String readName () {
415415 if (state == State .TYPE ) {
416- readBSONType ();
416+ readBsonType ();
417417 }
418418 if (state != State .NAME ) {
419419 throwInvalidState ("readName" , State .NAME );
@@ -515,7 +515,7 @@ protected void throwInvalidState(final String methodName, final State... validSt
515515 */
516516 protected void verifyBSONType (final String methodName , final BsonType requiredBsonType ) {
517517 if (state == State .INITIAL || state == State .SCOPE_DOCUMENT || state == State .TYPE ) {
518- readBSONType ();
518+ readBsonType ();
519519 }
520520 if (state == State .NAME ) {
521521 // ignore name
@@ -538,7 +538,7 @@ protected void verifyBSONType(final String methodName, final BsonType requiredBs
538538 * @throws BsonSerializationException
539539 */
540540 protected void verifyName (final String expectedName ) {
541- readBSONType ();
541+ readBsonType ();
542542 String actualName = readName ();
543543 if (!actualName .equals (expectedName )) {
544544 String message = format ("Expected element name to be '%s', not '%s'." ,
@@ -549,7 +549,7 @@ protected void verifyName(final String expectedName) {
549549
550550 protected void checkPreconditions (final String methodName , final BsonType type ) {
551551 if (isClosed ()) {
552- throw new IllegalStateException ("BSONWriter is closed" );
552+ throw new IllegalStateException ("BsonWriter is closed" );
553553 }
554554
555555 verifyBSONType (methodName , type );
0 commit comments