Skip to content

Commit b333eab

Browse files
committed
Merge tiny clean up from #4929 before PR itself
1 parent be92a6e commit b333eab

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/fasterxml/jackson/databind/deser/BasicDeserializerFactory.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -1268,10 +1268,9 @@ public KeyDeserializer createKeyDeserializer(DeserializationContext ctxt,
12681268
throws JsonMappingException
12691269
{
12701270
final DeserializationConfig config = ctxt.getConfig();
1271-
BeanDescription beanDesc = null;
1271+
final BeanDescription beanDesc = config.introspectClassAnnotations(type);
12721272
KeyDeserializer deser = null;
12731273
if (_factoryConfig.hasKeyDeserializers()) {
1274-
beanDesc = config.introspectClassAnnotations(type);
12751274
for (KeyDeserializers d : _factoryConfig.keyDeserializers()) {
12761275
deser = d.findKeyDeserializer(type, config, beanDesc);
12771276
if (deser != null) {
@@ -1283,9 +1282,6 @@ public KeyDeserializer createKeyDeserializer(DeserializationContext ctxt,
12831282
// the only non-standard thing is this:
12841283
if (deser == null) {
12851284
// [databind#2452]: Support `@JsonDeserialize(keyUsing = ...)`
1286-
if (beanDesc == null) {
1287-
beanDesc = config.introspectClassAnnotations(type.getRawClass());
1288-
}
12891285
deser = findKeyDeserializerFromAnnotation(ctxt, beanDesc.getClassInfo());
12901286
if (deser == null) {
12911287
if (type.isEnumType()) {

0 commit comments

Comments
 (0)