mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
ComponentStoreWithExtraComponents: Workaround for Kotlin compiler bug
KT-42831 CCE when a method returning generic type is called from annotated if statement Fixes the following exception: - java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class kotlin.Unit GitOrigin-RevId: 7aa254a1d9439af37ece9fbc76ecb85b895e7e27
This commit is contained in:
committed by
intellij-monorepo-bot
parent
927fec3b93
commit
9e55da7eb9
@@ -38,8 +38,7 @@ abstract class ComponentStoreWithExtraComponents : ComponentStoreImpl() {
|
||||
}
|
||||
|
||||
final override fun initComponent(component: Any, serviceDescriptor: ServiceDescriptor?, pluginId: PluginId?) {
|
||||
@Suppress("DEPRECATION")
|
||||
if (component is com.intellij.openapi.components.SettingsSavingComponent) {
|
||||
if (component is @Suppress("DEPRECATION") com.intellij.openapi.components.SettingsSavingComponent) {
|
||||
settingsSavingComponents.add(component)
|
||||
}
|
||||
else if (component is SettingsSavingComponent) {
|
||||
|
||||
Reference in New Issue
Block a user