Skip to content

Commit

Permalink
Normalize spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Jan 27, 2025
1 parent 39b4e60 commit f02292f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/lang3/BooleanUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ public static Boolean toBooleanObject(final String str) {
// Previously used equalsIgnoreCase, which was fast for interned 'true'.
// Non interned 'true' matched 15 times slower.
//
// Optimisation provides same performance as before for interned 'true'.
// Optimization provides same performance as before for interned 'true'.
// Similar performance for null, 'false', and other strings not length 2/3/4.
// 'true'/'TRUE' match 4 times slower, 'tRUE'/'True' 7 times slower.
if (str == TRUE) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/apache/commons/lang3/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -7688,7 +7688,7 @@ private static String[] splitWorker(final String str, final String separatorChar
i++;
}
} else if (separatorChars.length() == 1) {
// Optimise 1 character case
// Optimize 1 character case
final char sep = separatorChars.charAt(0);
while (i < len) {
if (str.charAt(i) == sep) {
Expand Down

0 comments on commit f02292f

Please sign in to comment.