Skip to content

Commit 036a5c2

Browse files
Very minor cleanup
1 parent 2c1a3b0 commit 036a5c2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/main/java/de/undercouch/bson4jackson/BsonParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ public JsonToken nextToken() throws IOException {
228228
if (ctx == null) {
229229
if (_currToken == JsonToken.END_OBJECT) {
230230
// end of input
231-
return (_currToken = null);
231+
_currToken = null;
232+
return null;
232233
}
233234
throw new JsonParseException("Found element outside the document",
234235
getTokenLocation());

src/test/java/de/undercouch/bson4jackson/BsonParserTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,8 @@ public void parseWrappedFloat() throws Exception {
693693
}
694694

695695
/**
696-
* Parse empty object, specifically checking getCurrentToken() along the way. See issue #128
696+
* Parse empty object, specifically checking getCurrentToken() along the
697+
* way. See issue #128
697698
* @throws Exception if something goes wrong
698699
*/
699700
@Test

0 commit comments

Comments
 (0)