You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rename setterSuffix option: it is applied as a prefix, not a suffix #342
The configuration option setterSuffix is misleadingly named: it is applied as a prefix, not a suffix.
MethodGeneratorUtil.generateBuilderMethodName produces setterSuffix + capitalize(fieldName), so setterSuffix = "with" generates withName(...), withNameUpdate(...) — never nameWith(...).
The documentation already describes prefix semantics ("Adds a prefix to all setter method names", -Asimplebuilder.setterSuffix=customPrefix), so only the option name is wrong — but it is confusing enough that it caused a real bug in #312, where the MapStruct naming strategy initially derived <field><suffix> names that could never match a generated setter.
Hard rename — no compatibility alias. The project has not hit 1.0, so the clean break is acceptable: existing user configs fail loudly on the unknown option rather than silently changing behaviour later.
Proposal
Rename the option to setterPrefix across annotation element, configuration API, compiler argument (-Asimplebuilder.setterPrefix) and docs, removing setterSuffix entirely.
Surfaced in #312 (MapStruct integration, fixes #300).
Activity
docs: drop stale suffix wording in BasicSetterGenerator javadoc (java…
feat: rename setterSuffix option to setterPrefix (#342) (#344)