Fix new compiler warnings in daemon and build-common

This commit is contained in:
Alexander Udalov
2021-07-05 23:33:12 +02:00
parent 0d211a53cb
commit e7b37d99cb
5 changed files with 27 additions and 3 deletions
@@ -40,7 +40,7 @@ abstract class BuildMetaInfoFactory<T : BuildMetaInfo>(private val metaInfoClass
): T
fun create(args: CommonCompilerArguments): T {
val languageVersion = args.languageVersion?.let((LanguageVersion)::fromVersionString) ?: LanguageVersion.LATEST_STABLE
val languageVersion = args.languageVersion?.let { LanguageVersion.fromVersionString(it) } ?: LanguageVersion.LATEST_STABLE
return create(
isEAP = languageVersion.isPreRelease(),
@@ -51,7 +51,7 @@ abstract class BuildMetaInfoFactory<T : BuildMetaInfo>(private val metaInfoClass
ownVersion = OWN_VERSION,
coroutinesVersion = COROUTINES_VERSION,
multiplatformVersion = MULTIPLATFORM_VERSION,
metadataVersionArray = args.metadataVersion?.let((BinaryVersion)::parseVersionArray)
metadataVersionArray = args.metadataVersion?.let { BinaryVersion.parseVersionArray(it) }
)
}
+8
View File
@@ -39,3 +39,11 @@ runtimeJar()
sourcesJar()
javadocJar()
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -66,3 +66,11 @@ runtimeJar()
sourcesJar()
javadocJar()
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -25,3 +25,11 @@ sourceSets {
"main" { projectDefault() }
"test" {}
}
tasks {
val compileKotlin by existing(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
}
}
}
@@ -103,7 +103,7 @@ abstract class DefaultAuthorizableClient<ServerType : ServerBase>(
}
override fun sendNoReplyMessage(msg: AnyMessage<out ServerType>) {
writeActor.offer(SendNoreplyMessageQuery(msg))
writeActor.trySend(SendNoreplyMessageQuery(msg))
}
override suspend fun <T> readMessage(id: Int): T {