Skip to content

Commit 65223e5

Browse files
committed
Improve JavaDoc (though subjective ...)
1 parent 3b10205 commit 65223e5

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,8 @@ public TypeDeserializer buildTypeDeserializer(DeserializationConfig config,
156156

157157
/**
158158
* Method for specifying whether strict type ID handling should be used for this type or not.
159-
* This is per-type override of {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}.
160-
* Sets {@link Boolean} value provided by {@link OptBoolean#asBoolean()} of configured {@link JsonTypeInfo#requireTypeIdForSubtypes}.
161-
* <p>
162-
* WARNING: This method will be abstract in Jackson 3.0.
159+
* 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}.
163161
*
164162
* @since 2.16
165163
*/

src/main/java/com/fasterxml/jackson/databind/jsontype/impl/StdTypeResolverBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,8 @@ protected boolean allowPrimitiveTypes(MapperConfig<?> config,
420420
/**
421421
* Determines whether strict type ID handling should be used for this type or not.
422422
* This will be enabld as configured by {@link JsonTypeInfo#requireTypeIdForSubtypes()}
423-
* unless its value is {@code OptBoolean.DEFAULT}. Otherwise,
423+
* unless its value is {@link com.fasterxml.jackson.annotation.OptBoolean#DEFAULT}.
424+
* In case the value of {@link JsonTypeInfo#requireTypeIdForSubtypes()} is {@code OptBoolean.DEFAULT},
424425
* this will be enabled when either the type has type resolver annotations or if
425426
* {@link com.fasterxml.jackson.databind.MapperFeature#REQUIRE_TYPE_ID_FOR_SUBTYPES}
426427
* is enabled.
@@ -434,7 +435,7 @@ protected boolean allowPrimitiveTypes(MapperConfig<?> config,
434435
* @since 2.15
435436
*/
436437
protected boolean _strictTypeIdHandling(DeserializationConfig config, JavaType baseType) {
437-
// [databind#3877]: since 2.16, allow configuration of per-type strict type handling
438+
// [databind#3877]: per-type strict type handling, since 2.16
438439
if (_requireTypeIdForSubtypes != null && baseType.isConcrete()) {
439440
return _requireTypeIdForSubtypes;
440441
}

0 commit comments

Comments
 (0)