Deprecate StringUtils::trimWhitespace #27769
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
PR #27703 has made
StringUtils::trimWhitespace
trivial, as the method now delegates toString::strip
. The only significance thattrimWhitespace
acceptsnull
. We should deprecatetrimWhitespace
in favor ofString::strip
.Similarly, we should deprecate
StringUtils::trimLeadingWhitespace
in favor ofString::stripLeading
, andStringUtils::trimTrailingWhitespace
in favor ofString::stripTrailing
.The text was updated successfully, but these errors were encountered: