Skip to content

ElementaryBuilder template misses generateUpdateHelpers=DISABLED — update helpers leak into the setter-only builder #333

Description

@igel-devin-ai

Bug

The example's @ElementaryBuilder template is documented as generating a setter-only builder ("disables all advanced features"), but it predates the generateUpdateHelpers option and never disables it — so @ElementaryBuilder-annotated types get xyzUpdate(UnaryOperator<T>) methods anyway. Visible in the committed generated BookDtoBuilder (authorUpdate, pagesUpdate, …).

Fix

Add generateUpdateHelpers = OptionState.DISABLED to @ElementaryBuilder (like the built-in @SimpleMinimalBuilder does) and regenerate the committed example builders.

Follow-up to #31 — the update-helpers feature (implemented in #223) postdates this template, which was never updated for it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions