File tree Expand file tree Collapse file tree 2 files changed +1986
-2
lines changed
src/main/java/com/fasterxml/jackson/databind/util Expand file tree Collapse file tree 2 files changed +1986
-2
lines changed Original file line number Diff line number Diff line change @@ -1390,11 +1390,14 @@ public JsonToken nextToken() throws IOException
1390
1390
public String nextFieldName () throws IOException
1391
1391
{
1392
1392
// inlined common case from nextToken()
1393
- if (_closed || (_segment == null )) return null ;
1393
+ if (_closed || (_segment == null )) {
1394
+ return null ;
1395
+ }
1394
1396
1395
1397
int ptr = _segmentPtr +1 ;
1396
- if (ptr < Segment .TOKENS_PER_SEGMENT && _segment .type (ptr ) == JsonToken .FIELD_NAME ) {
1398
+ if (( ptr < Segment .TOKENS_PER_SEGMENT ) && ( _segment .type (ptr ) == JsonToken .FIELD_NAME ) ) {
1397
1399
_segmentPtr = ptr ;
1400
+ _currToken = JsonToken .FIELD_NAME ;
1398
1401
Object ob = _segment .get (ptr ); // inlined _currentObject();
1399
1402
String name = (ob instanceof String ) ? ((String ) ob ) : ob .toString ();
1400
1403
_parsingContext .setCurrentName (name );
You can’t perform that action at this time.
0 commit comments