Skip to content

Commit 42020fd

Browse files
committed
Remove one direct _writeContext dependency (to allow better overriding)
1 parent b40a79c commit 42020fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/fasterxml/jackson/core/base/GeneratorBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ protected void _checkStdFeatureChanges(int newFeatureFlags, int changedFeatures)
290290
public void writeStartObject(Object forValue) throws IOException
291291
{
292292
writeStartObject();
293-
if ((_writeContext != null) && (forValue != null)) {
294-
_writeContext.setCurrentValue(forValue);
293+
if (forValue != null) {
294+
setCurrentValue(forValue);
295295
}
296296
}
297297

0 commit comments

Comments
 (0)