Fix new compiler warnings in daemon and build-common
This commit is contained in:
@@ -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) }
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user