Deprecate StringUtils::trimWhitespace and variants
This commits deprecates - StringUtils::trimWhitespace in favor of String::strip - StringUtils::trimLeadingWhitespace in favor of String::stripLeading - StringUtils::trimTrailingWhitespace in favor of String::stripTrailing Closes gh-27769
This commit is contained in:
@@ -67,6 +67,7 @@ class StringUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated
|
||||
void trimWhitespace() {
|
||||
assertThat(StringUtils.trimWhitespace(null)).isEqualTo(null);
|
||||
assertThat(StringUtils.trimWhitespace("")).isEqualTo("");
|
||||
@@ -97,6 +98,7 @@ class StringUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated
|
||||
void trimLeadingWhitespace() {
|
||||
assertThat(StringUtils.trimLeadingWhitespace(null)).isEqualTo(null);
|
||||
assertThat(StringUtils.trimLeadingWhitespace("")).isEqualTo("");
|
||||
@@ -112,6 +114,7 @@ class StringUtilsTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Deprecated
|
||||
void trimTrailingWhitespace() {
|
||||
assertThat(StringUtils.trimTrailingWhitespace(null)).isEqualTo(null);
|
||||
assertThat(StringUtils.trimTrailingWhitespace("")).isEqualTo("");
|
||||
|
||||
Reference in New Issue
Block a user