Skip to content

Conversation

Marcono1234
Copy link
Contributor

Fixes #1049

This is also consistent with the documentation for JsonReader.hasNext():

Returns true if the current array or object has another element.

@Marcono1234 Marcono1234 force-pushed the marcono1234/JsonReader-hasNext-end-of-document branch from 60db6d8 to e601973 Compare January 23, 2022 01:13
@eamonnmcmanus
Copy link
Member

I tried this against all of Google's internal tests and everything worked.

@eamonnmcmanus eamonnmcmanus merged commit 710a76c into google:master Jan 27, 2022
@Marcono1234 Marcono1234 deleted the marcono1234/JsonReader-hasNext-end-of-document branch January 28, 2022 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JsonReader.hasNext() returns true at END_DOCUMENT
2 participants