Skip to content

Commit

Permalink
One more (last?) fix backported from 3.0 for #4515
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 30, 2024
1 parent f91ec27 commit 201f45a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -951,10 +951,12 @@ private boolean _addImplicitConstructor(PotentialCreators collector,
return false;
}
// if not, prefer Properties-based if explicit preference OR
// property with same name
if (!ctorDetector.singleArgCreatorDefaultsToProperties()
&& !props.containsKey(ctor.implicitNameSimple(0))) {
return false;
// property with same name with at least one visible accessor
if (!ctorDetector.singleArgCreatorDefaultsToProperties()) {
POJOPropertyBuilder prop = props.get(ctor.implicitNameSimple(0));
if ((prop == null) || !prop.anyVisible() || prop.anyIgnorals()) {
return false;
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ final static class ClassGetter<T>
{
protected final T _value;

protected ClassGetter(T value) { _value = value;}
protected ClassGetter(T v) { _value = v;}

public T getNonRaw() { return _value; }

Expand Down

0 comments on commit 201f45a

Please sign in to comment.