Skip to content

Commit 2f65081

Browse files
committed
Use Char.lowercaseChar()
1 parent 9f8630a commit 2f65081

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared/src/main/kotlin/org/javacs/kt/util/StringUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ fun containsCharactersInOrder(candidate: CharSequence, pattern: CharSequence, ca
8383
var testChar = candidate[iCandidate]
8484

8585
if (!caseSensitive) {
86-
patternChar = Character.toLowerCase(patternChar)
87-
testChar = Character.toLowerCase(testChar)
86+
patternChar = patternChar.lowercaseChar()
87+
testChar = testChar.lowercaseChar()
8888
}
8989

9090
if (patternChar == testChar) {

0 commit comments

Comments
 (0)