Repository navigation
feat: add typed annotation member helpers - #476
Merged
AndreasIgel merged 10 commits intoDec 5, 2026
Merged
AndreasIgel merged 10 commits into
AndreasIgel merged 10 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This comment has been minimized.
This comment has been minimized.
AndreasIgel
reviewed
Dec 4, 2026
…sue-447-typed-annotations # Conflicts: # codegen-core/src/test/java/org/javahelpers/codegen/util/ImportCollectorTest.java
- introduce AnnotationMember (source expression + optional referenced type), replacing the parallel members/memberTypes maps in AnnotationDto - rename typed helpers to addMemberString/addMemberClass/addMemberEnum, drop redundant add2RawMember (raw values go through member()) - adapt ImportCollector, RoasterMapper, RoasterCodeGenerator, FieldAnnotationExtractor and tests; textblock comparison in CodegenDtoBuildersTest; examples in mapAnnotationMemberValue javadoc
GeneratedAnnotationEnhancer, BuilderImplementationAnnotationEnhancer and JacksonModuleGenerator now use addMemberString/addMemberClass instead of hand-writing source literals, so referenced types flow through the typed member import handling.
…sue-447-typed-annotations
This comment has been minimized.
This comment has been minimized.
AndreasIgel
reviewed
Dec 5, 2026
…tions - AnnotationMember gains a Kind (RAW/STRING/CLASS/ENUM_CONSTANT) defining how the value has to be interpreted; documented that the referenced type drives both import collection and collision qualification - new addMemberInt/addMemberBoolean helpers; each escape in quote() documented with its purpose - RoasterMapper.mapAnnotationMember is public for reuse in tests - tests: common assert helpers (exact + contains) in CodegenDtoBuildersTest, comprehensive all-member-types tests on model and RoasterMapper level - migrate manual escaping to typed helpers: WithInterfaceEnhancer (@SuppressWarnings("unchecked")), JacksonAnnotationEnhancer (withPrefix)
This comment has been minimized.
This comment has been minimized.
AndreasIgel
reviewed
Dec 5, 2026
- NUMBER/BOOLEAN kinds on AnnotationMember; int/boolean helpers record them - requireNonNull instead of manual null checks in AnnotationMember - removed orphaned javadoc fragment in AnnotationDtoBuilder - test helpers renamed to assertMembers/assertMembersContain - RoasterMapperTest all-types assertion split into readable concatenated lines
the referenced type moved into AnnotationMember itself with the typed model, leaving the annotation parameter unused (sonar java:S1172)
|
devin-ai-integration Bot
added a commit
to igel-devin-ai/simple-builders-devin-fork
that referenced
this pull request
Dec 5, 2026
devin-ai-integration Bot
added a commit
to igel-devin-ai/simple-builders-devin-fork
that referenced
this pull request
Dec 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Closes #447.
Summary
Verification
mvn clean verify