Skip to content

Commit a6d3a52

Browse files
committed
Minor tweak needed for new inclusion value
1 parent 66f6ffb commit a6d3a52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/tools/jackson/databind/jsontype/TypeSerializer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ public WritableTypeId typeId(Object value, JsonToken valueShape) {
9292
case WRAPPER_OBJECT:
9393
typeIdDef.include = WritableTypeId.Inclusion.WRAPPER_OBJECT;
9494
break;
95+
case NOTHING:
96+
// 07-Dec-2025, tatu: No suitable constant to use. Should add "NOTHING"?
97+
typeIdDef.include = null;
98+
break;
9599
default:
96100
VersionUtil.throwInternal();
97101
}

0 commit comments

Comments
 (0)