Skip to content

Commit bd90929

Browse files
committed
Add missing deprecation marker
1 parent 92356e6 commit bd90929

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/main/java/com/fasterxml/jackson/databind/introspect/JacksonAnnotationIntrospector.java

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -310,20 +310,21 @@ public void findEnumAliases(MapperConfig<?> config, AnnotatedClass annotatedClas
310310
}
311311
}
312312

313+
@Override
314+
@Deprecated // since 2.16
315+
public Enum<?> findDefaultEnumValue(Class<Enum<?>> enumCls) {
316+
return ClassUtil.findFirstAnnotatedEnumValue(enumCls, JsonEnumDefaultValue.class);
317+
}
318+
313319
/**
314320
* Finds the Enum value that should be considered the default value, if possible.
315321
* <p>
316322
* This implementation relies on {@link JsonEnumDefaultValue} annotation to determine the default value if present.
317323
*
318-
* @param enumCls The Enum class to scan for the default value.
324+
* @param annotatedClass The Enum class to scan for the default value annotation.
319325
* @return null if none found or it's not possible to determine one.
320-
* @since 2.8
326+
* @since 2.17
321327
*/
322-
@Override
323-
public Enum<?> findDefaultEnumValue(Class<Enum<?>> enumCls) {
324-
return ClassUtil.findFirstAnnotatedEnumValue(enumCls, JsonEnumDefaultValue.class);
325-
}
326-
327328
@Override // since 2.16
328329
public Enum<?> findDefaultEnumValue(AnnotatedClass annotatedClass, Enum<?>[] enumValues) {
329330
for (Annotated field : annotatedClass.fields()) {

0 commit comments

Comments
 (0)