IJPL-136 reduce usages of old serializer instance

GitOrigin-RevId: 7f889ba4a8a88e604fdcbe71c01182452116e882
This commit is contained in:
Vladimir Krivosheev
2024-02-22 15:08:38 +01:00
committed by intellij-monorepo-bot
parent 88530f369b
commit 624a365c3d
8 changed files with 30 additions and 24 deletions

View File

@@ -1,4 +1,4 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.extensions.impl
import com.intellij.openapi.components.ComponentManager
@@ -55,6 +55,7 @@ internal open class XmlExtensionAdapter(implementationClassName: String,
}
val element = extensionElement
if (element != null) {
@Suppress("UsagesOfObsoleteApi")
XmlSerializer.getBeanBinding(instance::class.java).deserializeInto(instance, element)
extensionElement = null
}