Skip to content

Commit 8e8cfce

Browse files
author
Abduqodiri Qurbonzoda
authored
Replace a usage of deprecated String.toLowerCase() (Kotlin#4231)
The function was deprecated with warning in Kotlin 1.5. In Kotlin 2.1 the deprecation level will be raised to error. See KT-71628
1 parent 8adb37c commit 8e8cfce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmarks/src/jmh/kotlin/benchmarks/flow/scrabble/ShakespearePlaysScrabble.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ abstract class ShakespearePlaysScrabble {
6666

6767
private fun readResource(path: String) =
6868
BufferedReader(InputStreamReader(GZIPInputStream(this.javaClass.classLoader.getResourceAsStream(path)))).lines()
69-
.map { it.toLowerCase() }.collect(Collectors.toSet())
69+
.map { it.lowercase() }.collect(Collectors.toSet())
7070

7171
init {
7272
val expected = listOf(120 to listOf("jezebel", "quickly"),

0 commit comments

Comments
 (0)