Skip to content

Commit b2158e0

Browse files
committed
...
1 parent eeaed56 commit b2158e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

smile/src/main/java/com/fasterxml/jackson/dataformat/smile/SmileParserBase.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ public final void close() throws IOException {
398398
_inputEnd = 0;
399399
_symbols.release();
400400
// 30-May-2025, tatu: was missing before 2.20
401-
_currToken = null;
401+
if (JsonParser.Feature.CLEAR_CURRENT_TOKEN_ON_CLOSE.enabledIn(_features)) {
402+
_currToken = null;
403+
}
402404
try {
403405
_closeInput();
404406
} finally {

0 commit comments

Comments
 (0)