Skip to content

Commit

Permalink
Skip delegating creator arguments when collecting properties
Browse files Browse the repository at this point in the history
  • Loading branch information
kirmerzlikin committed Mar 10, 2024
1 parent 6493f5f commit fd76078
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,10 @@ private void _addCreatorParam(Map<String, POJOPropertyBuilder> props,
// ...or is a Records canonical constructor
boolean isCanonicalConstructor = recordComponentName != null;

if ((creatorMode == null || creatorMode == JsonCreator.Mode.DISABLED) && !isCanonicalConstructor) {
if ((creatorMode == null
|| creatorMode == JsonCreator.Mode.DISABLED
|| creatorMode == JsonCreator.Mode.DELEGATING)
&& !isCanonicalConstructor) {
return;
}
pn = PropertyName.construct(impl);
Expand Down

0 comments on commit fd76078

Please sign in to comment.