Skip to content

Commit a7a8a80

Browse files
committed
...
1 parent ad308b4 commit a7a8a80

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,10 +1031,10 @@ private boolean _checkIfCreatorPropertyBased(BeanDescription beanDesc,
10311031
return true;
10321032
}
10331033
}
1034-
}
1035-
// [databind#3897]: Record canonical constructor will have implicitly named propDef
1036-
if (propDef != null && !propDef.isExplicitlyNamed() && beanDesc.isRecordType()) {
1037-
return true;
1034+
// [databind#3897]: Record canonical constructor will have implicitly named propDef
1035+
if (!propDef.isExplicitlyNamed() && beanDesc.isRecordType()) {
1036+
return true;
1037+
}
10381038
}
10391039
// in absence of everything else, default to delegating
10401040
return false;

0 commit comments

Comments
 (0)