Skip to content

Commit a4a272c

Browse files
committed
Improve JavaDoc of TypeResolverBuilder
1 parent 65223e5 commit a4a272c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/main/java/com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,18 @@ public TypeDeserializer buildTypeDeserializer(DeserializationConfig config,
155155
public T typeIdVisibility(boolean isVisible);
156156

157157
/**
158-
* Method for specifying whether strict type ID handling should be used for this type or not.
158+
* Specifies whether strict type ID handling should be used for this type.
159159
* Parameter {@code Boolean requireTypeId} is provided by {@link JsonTypeInfo#requireTypeIdForSubtypes()}.
160-
* Configuration using this method will override {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}.
160+
* This configuration overrides the global setting defined by
161+
* {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}.
162+
*
163+
* @param requireTypeId {@code true} to enforce type ID handling, {@code false} otherwise.
164+
* If {@code null}, the global setting will be used.
161165
*
162166
* @since 2.16
163167
*/
164168
public default void requireTypeIdForSubtypes(Boolean requireTypeId) {
165-
return;
169+
// no-op
166170
}
167171

168172
/*

0 commit comments

Comments
 (0)