Migrate compiler, idea and others to new case conversion api
This commit is contained in:
+2
-2
@@ -161,7 +161,7 @@ abstract class AbstractKotlinKapt3Test : KotlinKapt3TestBase() {
|
||||
)
|
||||
|
||||
val javaFiles = files
|
||||
.filter { it.name.toLowerCase().endsWith(".java") }
|
||||
.filter { it.name.lowercase().endsWith(".java") }
|
||||
.map { createTempFile(it.name.substringBeforeLast('.'), ".java", it.content) }
|
||||
|
||||
check(kaptContext, javaFiles, txtFile, wholeFile)
|
||||
@@ -294,7 +294,7 @@ open class AbstractClassFileToSourceStubConverterTest : AbstractKotlinKapt3Test(
|
||||
.map {
|
||||
// Unfortunately, we can't use the file name as it can contain temporary prefix
|
||||
val name = it.source?.name?.substringAfterLast("/") ?: ""
|
||||
val kind = when (name.substringAfterLast(".").toLowerCase()) {
|
||||
val kind = when (name.substringAfterLast(".").lowercase()) {
|
||||
"kt" -> "kotlin"
|
||||
"java" -> "java"
|
||||
else -> "other"
|
||||
|
||||
@@ -48,7 +48,7 @@ interface CustomJdkTestLauncher {
|
||||
val currentJavaHome = System.getProperty("java.home")
|
||||
|
||||
val classpath = collectClasspath(AbstractClassFileToSourceStubConverterTest::class.java.classLoader)
|
||||
.filter { it.protocol.toLowerCase() == "file" && it.path != null && !it.path.startsWith(currentJavaHome) }
|
||||
.filter { it.protocol.lowercase() == "file" && it.path != null && !it.path.startsWith(currentJavaHome) }
|
||||
.map { it.path }
|
||||
|
||||
val command = arrayOf(
|
||||
|
||||
Reference in New Issue
Block a user