Skip to content

Rename FieldDto to BuilderFieldDto - it is builder working state (#372) - #373

Merged
AndreasIgel merged 1 commit into
java-helpers:mainfrom
igel-devin-ai:devin/1792788439-builder-field-dto
Oct 23, 2026
Merged

AndreasIgel merged 1 commit into
java-helpers:mainfrom
igel-devin-ai:devin/1792788439-builder-field-dto

Conversation

@igel-devin-ai

@igel-devin-ai igel-devin-ai commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Closes #372.

Prep for #349: FieldDto carried List<BuilderMethodDto> — builder working state — and review showed it is used only on the builder-definition side: nothing on the generation side consumes it (the render model carries ClassFieldDto) and nothing moving to simple-codegen references it.

So instead of splitting the type, FieldDto is renamed to BuilderFieldDto (file moved via git mv, history preserved): the field state and the collected builder methods stay together in one honestly-named builder-domain type. In #349 it simply stays processor-side.

  • FieldDto → BuilderFieldDto across the builder definition flow: BuilderDefinitionDto field lists, BuilderDefinitionCreator, the MethodGenerator SPI (appliesTo/generateMethods), all field generators, GeneratorRegistry, enhancers, MethodGeneratorUtil, BuilderToGenerationTypeMapper (FieldMethod), ClassJavaDocEnhancer.
  • convertToClassField(BuilderFieldDto) stays the working→render field conversion into ClassFieldDto.
  • Javadoc links in GetterInfoDto/package-info and the SPI examples in docs/CUSTOMIZING.md + example-custom-generator/README.md updated (also correcting stale ProcessingContext→BuilderProcessingContext and MethodDto→BuilderMethodDto there).

528/528 processor tests green; regenerated example output byte-identical.

@igel-devin-ai igel-devin-ai changed the title Introduce BuilderFieldDto wrapping field state and builder methods (#372) Rename FieldDto to BuilderFieldDto - it is builder working state (#372) Oct 23, 2026
FieldDto is used only on the builder definition side and carries the
collected builder methods - nothing on the generation side or moving to
simple-codegen references it. Renamed instead of split: the field state
and method list stay together in one builder-domain type. File moved via
git mv to preserve history; all working-side references retyped.
@devin-ai-integration
devin-ai-integration Bot force-pushed the devin/1792788439-builder-field-dto branch from b7beb1c to 3ad68ae Compare October 23, 2026 21:16
@codecov

codecov Bot commented Oct 23, 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!

@AndreasIgel
AndreasIgel merged commit 8e773d2 into java-helpers:main Oct 23, 2026
7 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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.

Introduce BuilderFieldDto as builder working field, map to FieldDto for generation

3 participants