Skip to content

feat: rename setterSuffix option to setterPrefix (#342) - #344

Merged
AndreasIgel merged 3 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1791762140-setter-prefix-rename
Oct 12, 2026
Merged

AndreasIgel merged 3 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1791762140-setter-prefix-rename

Conversation

@igel-devin-ai

Copy link
Copy Markdown
Collaborator

Fixes #342.

Why

setterSuffix was applied as a prefix — MethodGeneratorUtil.generateBuilderMethodName produces setterSuffix + capitalize(fieldName) — never a suffix. The misleading name already caused a real bug in #312.

What

Hard rename with no compatibility alias, per the issue decision:

  • @SimpleBuilder.Options#setterSuffix() → setterPrefix()
  • BuilderConfiguration record component, builder method and getSetterSuffix() → getSetterPrefix()
  • CompilerArgumentsEnum.SETTER_SUFFIX → SETTER_PREFIX, compiler arg -Asimplebuilder.setterSuffix → -Asimplebuilder.setterPrefix
  • docs/CONFIGURATION.md and javadoc updated to prefix semantics

Existing user configs fail loudly on the unknown option, as intended.

Verified

  • mvn clean verify — all modules pass
  • No setter.?suffix reference remains (case-insensitive repo-wide grep)
  • Generated example builders unchanged

The option was applied as a prefix (setterSuffix + capitalize(field)),
never a suffix. Hard rename across the annotation element,
BuilderConfiguration, the -Asimplebuilder.setterPrefix compiler arg and
docs, with no compatibility alias.
@AndreasIgel AndreasIgel changed the title feat!: rename setterSuffix option to setterPrefix (#342) feat: rename setterSuffix option to setterPrefix (#342) Oct 11, 2026
@codecov

codecov Bot commented Oct 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

…tter-prefix-rename

# Conflicts:
#	processor/src/main/java/org/javahelpers/simple/builders/processor/generators/util/MethodGeneratorUtil.java
@sonarqubecloud

Copy link
Copy Markdown

@AndreasIgel
AndreasIgel merged commit 476c36a into java-helpers:main Oct 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename setterSuffix option: it is applied as a prefix, not a suffix

2 participants