Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#520] extends toStringPlugin to generate toString methods on enums #521

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

laurentschoelens
Copy link
Collaborator

Fixes #520

Add extra parameter toStringEnums with following usage -XtoString-toStringEnums=true to generate toString methods on enums.

This will allow someone to override the output of enums in custom strategy.
See example in enumtostring project in tests

Copy link
Collaborator

@mattrpav mattrpav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mattrpav mattrpav merged commit d4a51e5 into highsource:master Mar 19, 2024
3 checks passed
@mattrpav mattrpav deleted the jt-520 branch March 19, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement xjc-plugins Issue concerns basics plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

customize toString() on enums
2 participants