Skip to content

Commit

Permalink
Remove Gradle message: 'toUpperCase(): String' is deprecated
Browse files Browse the repository at this point in the history
Before this change, the Gradle build showed this message:

	w: file:///home/runner/work/pullpitoK/pullpitoK/build.gradle.kts:36:72: 'toUpperCase(): String' is deprecated. Use uppercase() instead.
  • Loading branch information
nicokosi committed Oct 5, 2023
1 parent c923e50 commit 3b6aae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ kotlin {
}

fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.toUpperCase().contains(it) }
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
Expand Down

0 comments on commit 3b6aae7

Please sign in to comment.