Skip to content

Commit

Permalink
Merge branch '2.19'
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Jan 26, 2025
2 parents dd9c4f9 + 67264fb commit 39e0ef9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1206,10 +1206,9 @@ public KeyDeserializer createKeyDeserializer(DeserializationContext ctxt,
JavaType type)
{
final DeserializationConfig config = ctxt.getConfig();
BeanDescription beanDesc = null;
final BeanDescription beanDesc = ctxt.introspectBeanDescription(type);
KeyDeserializer deser = null;
if (_factoryConfig.hasKeyDeserializers()) {
beanDesc = ctxt.introspectBeanDescription(type);
for (KeyDeserializers d : _factoryConfig.keyDeserializers()) {
deser = d.findKeyDeserializer(type, config, beanDesc);
if (deser != null) {
Expand All @@ -1221,9 +1220,6 @@ public KeyDeserializer createKeyDeserializer(DeserializationContext ctxt,
// the only non-standard thing is this:
if (deser == null) {
// [databind#2452]: Support `@JsonDeserialize(keyUsing = ...)`
if (beanDesc == null) {
beanDesc = ctxt.introspectBeanDescription(type);
}
deser = findKeyDeserializerFromAnnotation(ctxt, beanDesc.getClassInfo());
if (deser == null) {
if (type.isEnumType()) {
Expand Down

0 comments on commit 39e0ef9

Please sign in to comment.