@@ -49,7 +49,7 @@ public final class SimpleStreamWriteContext extends TokenStreamContext
49
49
* Marker used to indicate that we just wrote a property name (or possibly
50
50
* property id for some backends) and now expect a value to write.
51
51
*/
52
- protected boolean _gotFieldId ;
52
+ protected boolean _gotPropertyId ;
53
53
54
54
/*
55
55
/**********************************************************************
@@ -71,7 +71,7 @@ private SimpleStreamWriteContext reset(int type, Object currentValue) {
71
71
_type = type ;
72
72
_index = -1 ;
73
73
_currentName = null ;
74
- _gotFieldId = false ;
74
+ _gotPropertyId = false ;
75
75
_currentValue = currentValue ;
76
76
if (_dups != null ) { _dups .reset (); }
77
77
return this ;
@@ -132,11 +132,11 @@ public SimpleStreamWriteContext createChildObjectContext(Object currentValue) {
132
132
@ Override public final String currentName () {
133
133
// 15-Aug-2019, tatu: Should NOT check this status because otherwise name
134
134
// in parent context is not accessible after new structured scope started
135
- // if (_gotFieldId ) { ... }
135
+ // if (_gotPropertyId ) { ... }
136
136
return _currentName ;
137
137
}
138
138
139
- @ Override public boolean hasCurrentName () { return _gotFieldId ; }
139
+ @ Override public boolean hasCurrentName () { return _gotPropertyId ; }
140
140
141
141
/**
142
142
* Method that can be used to both clear the accumulated references
@@ -174,10 +174,10 @@ public DupDetector getDupDetector() {
174
174
* @throws StreamWriteException If write fails due to duplicate check
175
175
*/
176
176
public boolean writeName (String name ) throws StreamWriteException {
177
- if ((_type != TYPE_OBJECT ) || _gotFieldId ) {
177
+ if ((_type != TYPE_OBJECT ) || _gotPropertyId ) {
178
178
return false ;
179
179
}
180
- _gotFieldId = true ;
180
+ _gotPropertyId = true ;
181
181
_currentName = name ;
182
182
if (_dups != null ) { _checkDup (_dups , name ); }
183
183
return true ;
@@ -194,10 +194,10 @@ private final void _checkDup(DupDetector dd, String name) throws StreamWriteExce
194
194
public boolean writeValue () {
195
195
// Only limitation is with OBJECTs:
196
196
if (_type == TYPE_OBJECT ) {
197
- if (!_gotFieldId ) {
197
+ if (!_gotPropertyId ) {
198
198
return false ;
199
199
}
200
- _gotFieldId = false ;
200
+ _gotPropertyId = false ;
201
201
}
202
202
++_index ;
203
203
return true ;
0 commit comments