Skip to content

Commit

Permalink
Try to fix issue wrt parameter names, master (#4548)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder authored May 29, 2024
1 parent 9147dba commit b6af5aa
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -869,10 +869,13 @@ private boolean _isExplicitlyAnnotatedCreatorPropsBased(PotentialCreator ctor,
}
if (ctor.paramCount() == 1) {
// One more possibility: implicit name that maps to implied
// property based on Field/Getter/Setter
// property with at least one visible accessor
String implName = ctor.implicitNameSimple(0);
if ((implName != null) && props.containsKey(implName)) {
return true;
if (implName != null) {
POJOPropertyBuilder prop = props.get(implName);
if ((prop != null) && prop.anyVisible() && !prop.anyIgnorals()) {
return true;
}
}
// Second: injectable also suffices
if ((_annotationIntrospector != null)
Expand Down

0 comments on commit b6af5aa

Please sign in to comment.