Skip to content

Introduce SimpleValueStyler for use with ToStringCreator #29381

Closed
@sbrannen

Description

@sbrannen

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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions