Skip to content

Commit 557bd2e

Browse files
committed
Update from deprecated code
1 parent df0be69 commit 557bd2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/commons/text/WordUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
import org.apache.commons.lang3.ArrayUtils;
2626
import org.apache.commons.lang3.StringUtils;
27+
import org.apache.commons.lang3.Strings;
2728
import org.apache.commons.lang3.Validate;
2829

2930
/**
@@ -97,7 +98,7 @@ public static String abbreviate(final String str, int lower, int upper, final St
9798
}
9899

99100
final StringBuilder result = new StringBuilder();
100-
final int index = StringUtils.indexOf(str, " ", lower);
101+
final int index = Strings.CS.indexOf(str, " ", lower);
101102
if (index == -1) {
102103
result.append(str, 0, upper);
103104
// only if abbreviation has occurred do we append the appendToEnd value

0 commit comments

Comments
 (0)