Skip to content

Commit 0268df8

Browse files
committed
Replace deprecated 'toUpperCase'
1 parent 193b59b commit 0268df8

File tree

1 file changed

+1
-1
lines changed
  • adapter/src/main/kotlin/org/javacs/ktda/classpath

1 file changed

+1
-1
lines changed

adapter/src/main/kotlin/org/javacs/ktda/classpath/PathUtils.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,4 @@ private fun Path.ifExists() = if (Files.exists(this)) this else null
4646
private fun Path.withExtension(extension: String) = resolveSibling(fileName.toString() + extension)
4747

4848
private fun String.capitalizeCharAt(index: Int) =
49-
take(index) + this[index].toUpperCase() + substring(index + 1)
49+
take(index) + this[index].uppercaseChar() + substring(index + 1)

0 commit comments

Comments
 (0)