Skip to content

Commit

Permalink
Replace a usage of deprecated String.toLowerCase() (#4231)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
qurbonzoda authored Sep 25, 2024
1 parent 8adb37c commit 8e8cfce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class ShakespearePlaysScrabble {

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

init {
val expected = listOf(120 to listOf("jezebel", "quickly"),
Expand Down

0 comments on commit 8e8cfce

Please sign in to comment.