From 6968ab3556f0843ca648bf6099b809cbd28d81ea Mon Sep 17 00:00:00 2001 From: joohyukkim Date: Tue, 16 May 2023 19:22:43 +0900 Subject: [PATCH] Improve JavaDoc of TypeResolverBuilder --- .../jackson/databind/jsontype/TypeResolverBuilder.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.java b/src/main/java/com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.java index e0f0554c75..9a7d317a0b 100644 --- a/src/main/java/com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.java +++ b/src/main/java/com/fasterxml/jackson/databind/jsontype/TypeResolverBuilder.java @@ -155,14 +155,18 @@ public TypeDeserializer buildTypeDeserializer(DeserializationConfig config, public T typeIdVisibility(boolean isVisible); /** - * Method for specifying whether strict type ID handling should be used for this type or not. + * Specifies whether strict type ID handling should be used for this type. * Parameter {@code Boolean requireTypeId} is provided by {@link JsonTypeInfo#requireTypeIdForSubtypes()}. - * Configuration using this method will override {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}. + * This configuration overrides the global setting defined by + * {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}. + * + * @param requireTypeId {@code true} to enforce type ID handling, {@code false} otherwise. + * If {@code null}, the global setting will be used. * * @since 2.16 */ public default void requireTypeIdForSubtypes(Boolean requireTypeId) { - return; + // no-op } /*