[kotlin] ensure that the class can't be loaded by the child loader

- required if inspection is called before intentions are loaded (= open project without opening any kotlin files, run inspections)

^KTIJ-30415 fixed

GitOrigin-RevId: fcd0bebe8e68ed0d497d6e08f12c0923f49fbc13
This commit is contained in:
Anna Kozlova
2024-06-26 11:00:06 +00:00
committed by intellij-monorepo-bot
parent 352497a8b3
commit 3920962879
5 changed files with 5 additions and 5 deletions
@@ -1,5 +1,5 @@
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.codeInsight.intentions.shared
package org.jetbrains.kotlin.idea.codeInsight.intentions.fake
import com.intellij.codeInsight.FileModificationService
import com.intellij.openapi.actionSystem.CommonDataKeys
@@ -14,7 +14,7 @@ import org.jetbrains.kotlin.idea.caches.resolve.safeAnalyzeNonSourceRootCode
import org.jetbrains.kotlin.idea.codeinsight.api.classic.inspections.AbstractKotlinInspection
import org.jetbrains.kotlin.idea.codeinsight.utils.findExistingEditor
import org.jetbrains.kotlin.idea.inspections.collections.isCalling
import org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ReplaceItWithExplicitFunctionLiteralParamIntention
import org.jetbrains.kotlin.idea.codeInsight.intentions.fake.ReplaceItWithExplicitFunctionLiteralParamIntention
import org.jetbrains.kotlin.idea.intentions.callExpression
import org.jetbrains.kotlin.idea.refactoring.rename.KotlinVariableInplaceRenameHandler
import org.jetbrains.kotlin.name.FqName
@@ -1 +1 @@
org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ReplaceItWithExplicitFunctionLiteralParamIntention
org.jetbrains.kotlin.idea.codeInsight.intentions.fake.ReplaceItWithExplicitFunctionLiteralParamIntention
@@ -1 +1 @@
org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ReplaceItWithExplicitFunctionLiteralParamIntention
org.jetbrains.kotlin.idea.codeInsight.intentions.fake.ReplaceItWithExplicitFunctionLiteralParamIntention
@@ -541,7 +541,7 @@
<intentionAction>
<!--TODO move to intentions-shared after NestedLambdaShadowedImplicitParameterInspection is migrated -->
<language>kotlin</language>
<className>org.jetbrains.kotlin.idea.codeInsight.intentions.shared.ReplaceItWithExplicitFunctionLiteralParamIntention</className>
<className>org.jetbrains.kotlin.idea.codeInsight.intentions.fake.ReplaceItWithExplicitFunctionLiteralParamIntention</className>
<bundleName>messages.KotlinBundle</bundleName>
<categoryKey>group.names.kotlin</categoryKey>
</intentionAction>