Skip to content

Introduce SimpleValueStyler for use with ToStringCreator #29381

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

Closed
sbrannen opened this issue Oct 25, 2022 · 0 comments
Closed

Introduce SimpleValueStyler for use with ToStringCreator #29381

sbrannen opened this issue Oct 25, 2022 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Oct 25, 2022

DefaultValueStyler hard codes conventions for styling that are verbose and do not align well with standard toString() implementations in the JDK for arrays, collections, and maps. Furthermore, the default styling for classes and methods may not be suitable or desirable for certain use cases.

To address these shortcomings, we should introduce a SimpleValueStyler for use with ToStringCreator. The default behavior of SimpleValueStyler should align with toString() implementations for arrays, collections, and maps in the JDK, and styling for classes and methods should be configurable without having to create a custom subclass of the ValueStyler.

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Oct 25, 2022
@sbrannen sbrannen added this to the 6.0.0-RC3 milestone Oct 25, 2022
@sbrannen sbrannen self-assigned this Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant