Replace usages of useExperimental with optIn

GitOrigin-RevId: 250a663939c3e354df1920f671c753c4bf158f66
This commit is contained in:
Mikhail Glukhikh
2022-02-21 11:27:37 +00:00
committed by intellij-monorepo-bot
parent d7444d0f7d
commit 86b7a08d94
2 changed files with 2 additions and 2 deletions
@@ -48,7 +48,7 @@ abstract class AbstractExpiration : Expiration {
get() = job.isCompleted
@Suppress("EXPERIMENTAL_IS_NOT_ENABLED")
@UseExperimental(InternalCoroutinesApi::class)
@OptIn(InternalCoroutinesApi::class)
override fun invokeOnExpiration(handler: Runnable): Expiration.Handle =
job.invokeOnCompletion(onCancelling = true) { handler.run() }.toHandlerRegistration()
@@ -112,7 +112,7 @@ class KotlinFragmentDataService : AbstractProjectDataService<KotlinFragmentData,
val arg = "-XXLanguage:+$it"
ManualLanguageFeatureSetting(feature, LanguageFeature.State.ENABLED, arg)
}
useExperimental = it.optInAnnotationsInUse.toTypedArray()
optIn = it.optInAnnotationsInUse.toTypedArray()
pluginOptions = it.compilerPluginArguments
pluginClasspaths = it.compilerPluginClasspath.map(File::getPath).toTypedArray()
freeArgs = it.freeCompilerArgs.toMutableList()