Closed jjspiegel closed 3 years ago
@jjspiegel I am checking this. This is only javadoc related, isn't it?.
Because next()
relies on getValue()
, getObject()
and getArray()
. But also, previous methods relies on next()
. This is why getValue()
, getObject()
and getArray()
needs to be annotated with throws JsonParsingException and NoSuchElementException.
The methods getValue(), getObject(), and getArray() on JsonParser should be marked as throwing JsonParsingException and possibly NoSuchElementException since they advance the parser state. These exceptions are thrown by next().