Lazily initialize DataSize.PATTERN #28560
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
To avoid unnecessary eager initialization of
org.springframework.util.unit.DataSize.PATTERN
, we should initialize it lazily in the first invocation ofDataSize.parse(CharSequence, DataUnit)
.This can be achieved by moving
PATTERN
to aprivate static
nested class.See oracle/graal#4489 for details.
The text was updated successfully, but these errors were encountered: