Skip to content

Keep array dimensions in method signature keys - #481

Merged
AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1796197741-issue-468-array-signatures
Dec 3, 2026
Merged

AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1796197741-issue-468-array-signatures

Conversation

@igel-devin-ai

Copy link
Copy Markdown
Contributor

Summary

Fixes #468.

Method signature keys now use TypeName.getRawQualifiedName(), which preserves type erasure including array dimensions. As a result, List<List<String>> and List<String>... no longer share the false signature key value(java.util.List): the varargs helper is keyed as value(java.util.List[]) and remains alongside the direct setter.

The same signature calculation is updated in both the processor conflict-resolution model and the rendering safety net. Existing real erasure conflicts remain covered by MethodConflictResolutionTest.

Regression coverage verifies that nested-list properties generate both value(List<List<String>>) and value(List<String>...) variants without a conflict warning; the old warning expectation that encoded the false conflict was removed.

mvn clean verify passes.

@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2026

Copy link
Copy Markdown

@codecov

codecov Bot commented Dec 3, 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 847cb7e into java-helpers:main Dec 3, 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.

Method signature key ignores array dimensions and drops varargs helpers

2 participants