Skip to content

Commit

Permalink
replaced StringBuffer with StringBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ameyjadiye committed May 4, 2017
1 parent aa91645 commit a611df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/text/WordUtils.java
Expand Up @@ -785,7 +785,7 @@ public static String abbreviate(String str, int lower, int upper, String appendT
upper = lower;
}

final StringBuffer result = new StringBuffer();
final StringBuilder result = new StringBuilder();
final int index = StringUtils.indexOf(str, " ", lower);
if (index == -1) {
result.append(str.substring(0, upper));
Expand Down

0 comments on commit a611df5

Please sign in to comment.