Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,10 @@ public void skipLong() throws IOException {
int maxLeft = 9;
int b;
do {
b = _nextByteGuaranteed();
b = buf[ptr++];
} while ((--maxLeft > 0) && (b < 0));
if (b < 0) {
_inputPtr = ptr;
_reportInvalidNegative(b);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public JsonToken nextToken() throws IOException
_count = _parser.decodeMapNext();
// more stuff?
if (_count > 0L) {
_state = STATE_VALUE;
_index = 0;
_currentName = _parser.decodeMapKey();
return (_currToken = JsonToken.PROPERTY_NAME);
Expand Down Expand Up @@ -235,6 +236,7 @@ public JsonToken nextToken() throws IOException
_count = _parser.decodeMapNext();
// more stuff?
if (_count > 0L) {
_state = STATE_VALUE;
_index = 0;
_currentName = _parser.decodeMapKey();
return (_currToken = JsonToken.PROPERTY_NAME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public JsonToken readValue(AvroReadContext parent, AvroParserImpl parser) throws

@Override
public void skipValue(AvroParserImpl parser) throws IOException {
parser.skipFloat();
parser.skipBytesDecimal();
}
}
}
Expand Down