mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Replace usages of useExperimental with optIn
GitOrigin-RevId: 250a663939c3e354df1920f671c753c4bf158f66
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d7444d0f7d
commit
86b7a08d94
+1
-1
@@ -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()
|
||||
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user