Skip to content

feat: use primitive functional interfaces - #477

Merged
AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1796082288-issue-449-primitive-functional-interfaces
Dec 2, 2026
Merged

AndreasIgel merged 2 commits into
java-helpers:mainfrom
igel-devin-ai:devin/1796082288-issue-449-primitive-functional-interfaces

Conversation

@igel-devin-ai

Copy link
Copy Markdown
Contributor

Closes #449.

Summary

  • Generate BooleanSupplier, IntSupplier, LongSupplier, and DoubleSupplier setters for matching primitive fields and invoke their getAs* methods directly.
  • Generate IntUnaryOperator, LongUnaryOperator, and DoubleUnaryOperator update helpers where primitive specializations exist; other primitive and wrapper types keep the boxed generic interfaces.
  • Update generated examples, regression expectations, and configuration documentation.

Compatibility note: this intentionally changes generated method signatures for primitive fields, so explicitly typed existing Supplier<Boolean>/Supplier<Integer> variables may need the matching primitive supplier type.

Verification

  • mvn clean verify

@codecov

codecov Bot commented Dec 1, 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!

@sonarqubecloud

sonarqubecloud Bot commented Dec 1, 2026

Copy link
Copy Markdown

@AndreasIgel
AndreasIgel merged commit c921563 into java-helpers:main Dec 2, 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.

Generate primitive functional interfaces (BooleanSupplier, IntSupplier, …) for primitive fields

2 participants