Skip to content

Polish capitalisation of units on DataSize and javadoc of DataUnit [SPR-17240] #21773

@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-17240 and commented

DataSize currently camel-cases the units as if bytes is a separate word. For example, it has a method named ofKiloBytes. Given that kilobytes is the unit, I would expect that method to be ofKilobytes. The same applies to the methods for megabytes, gigabytes, and terabytes. If this proposal is accepted, the javadoc for the values on DataUnit should also be updated.


Affects: 5.1 RC2

Referenced from: commits 2c1dca5

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