From e129728c80781c105d13220e87c3a553940465e6 Mon Sep 17 00:00:00 2001 From: Max Medvedev Date: Mon, 20 Oct 2025 00:26:58 +0200 Subject: [PATCH] [completion] IJPL-207762 rename implementationClass attribute to handler to avoid warnings about missing default constructor in handlers GitOrigin-RevId: 03e43689828239a048dcbeaa810e1f735e5712fe --- .../resource/intellij.java.frontback.impl.xml | 10 +++++----- .../method/FrontendFriendlyParenthesesInsertHandler.kt | 1 - .../analysis-impl/resources/META-INF/AnalysisImpl.xml | 7 ++++--- .../CompositeFrontendFriendlyInsertHandler.kt | 1 - .../FrontendFriendlyInsertHandlerSerializer.kt | 2 +- 5 files changed, 10 insertions(+), 11 deletions(-) diff --git a/java/java-frontback-impl/resource/intellij.java.frontback.impl.xml b/java/java-frontback-impl/resource/intellij.java.frontback.impl.xml index 3fa16e8cd284..e975adab7da5 100644 --- a/java/java-frontback-impl/resource/intellij.java.frontback.impl.xml +++ b/java/java-frontback-impl/resource/intellij.java.frontback.impl.xml @@ -79,11 +79,11 @@ defaultValue="false" description="Format chained calls as in versions prior to 2021.2"/> - - - - - + + + + + diff --git a/java/java-frontback-impl/src/com/intellij/codeInsight/completion/method/FrontendFriendlyParenthesesInsertHandler.kt b/java/java-frontback-impl/src/com/intellij/codeInsight/completion/method/FrontendFriendlyParenthesesInsertHandler.kt index 4661823c2671..b78dee320cde 100644 --- a/java/java-frontback-impl/src/com/intellij/codeInsight/completion/method/FrontendFriendlyParenthesesInsertHandler.kt +++ b/java/java-frontback-impl/src/com/intellij/codeInsight/completion/method/FrontendFriendlyParenthesesInsertHandler.kt @@ -8,7 +8,6 @@ import com.intellij.codeInsight.lookup.LookupElement import com.intellij.util.ThreeState import kotlinx.serialization.Serializable -@Suppress("NonDefaultConstructor") @Serializable class FrontendFriendlyParenthesesInsertHandler( private val hasParameters: Boolean diff --git a/platform/analysis-impl/resources/META-INF/AnalysisImpl.xml b/platform/analysis-impl/resources/META-INF/AnalysisImpl.xml index c2717ea76583..8f6f7a115cbf 100644 --- a/platform/analysis-impl/resources/META-INF/AnalysisImpl.xml +++ b/platform/analysis-impl/resources/META-INF/AnalysisImpl.xml @@ -24,7 +24,7 @@ - + @@ -95,8 +95,9 @@ + handler="com.intellij.codeInsight.completion.CompositeFrontendFriendlyInsertHandler"/> + + handler="com.intellij.codeInsight.completion.NoOpFrontendFriendlyInsertHandler"/> diff --git a/platform/analysis-impl/src/com/intellij/codeInsight/completion/CompositeFrontendFriendlyInsertHandler.kt b/platform/analysis-impl/src/com/intellij/codeInsight/completion/CompositeFrontendFriendlyInsertHandler.kt index 7348a8a6736e..73d6a1560f6d 100644 --- a/platform/analysis-impl/src/com/intellij/codeInsight/completion/CompositeFrontendFriendlyInsertHandler.kt +++ b/platform/analysis-impl/src/com/intellij/codeInsight/completion/CompositeFrontendFriendlyInsertHandler.kt @@ -17,7 +17,6 @@ import org.jetbrains.annotations.ApiStatus * * @see FrontendFriendlyInsertHandler */ -@Suppress("NonDefaultConstructor") @ApiStatus.Internal @Serializable data class CompositeFrontendFriendlyInsertHandler( diff --git a/platform/analysis-impl/src/com/intellij/codeInsight/completion/FrontendFriendlyInsertHandlerSerializer.kt b/platform/analysis-impl/src/com/intellij/codeInsight/completion/FrontendFriendlyInsertHandlerSerializer.kt index 957c7d857878..521b451deb9e 100644 --- a/platform/analysis-impl/src/com/intellij/codeInsight/completion/FrontendFriendlyInsertHandlerSerializer.kt +++ b/platform/analysis-impl/src/com/intellij/codeInsight/completion/FrontendFriendlyInsertHandlerSerializer.kt @@ -61,7 +61,7 @@ private fun findSerializer(fqn: String): KSe private val ep_name = ExtensionPointName("com.intellij.completion.frontendFriendlyInsertHandler") internal class FrontendFriendlyInsertHandlerSerializerBean : BaseKeyedLazyInstance>(), KeyedLazyInstance> { - @Attribute("implementationClass") + @Attribute("handler") @RequiredElement @JvmField var implementationClass: String? = null