File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
idea/src/org/jetbrains/kotlin/idea/inspections Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 16
16
17
17
package org.jetbrains.kotlin.idea.inspections
18
18
19
- import com.intellij.codeInsight.CodeInsightUtilBase
20
19
import com.intellij.codeInsight.FileModificationService
21
20
import com.intellij.codeInspection.InspectionsBundle
22
21
import com.intellij.codeInspection.LocalQuickFix
@@ -36,7 +35,6 @@ import org.jetbrains.kotlin.psi.KtObjectDeclaration
36
35
import org.jetbrains.kotlin.psi.KtVisitorVoid
37
36
import org.jetbrains.kotlin.psi.psiUtil.getStrictParentOfType
38
37
import org.jetbrains.kotlin.resolve.source.getPsi
39
- import org.jetbrains.kotlin.types.typeUtil.supertypes
40
38
41
39
object DeleteEqualsAndHashCodeFix : LocalQuickFix {
42
40
override fun getName () = " Delete equals()/hashCode()"
@@ -63,6 +61,8 @@ sealed class GenerateEqualsOrHashCodeFix : LocalQuickFix {
63
61
64
62
override fun getFamilyName () = name
65
63
64
+ override fun startInWriteAction () = false
65
+
66
66
override fun applyFix (project : Project , descriptor : ProblemDescriptor ) {
67
67
if (! FileModificationService .getInstance().preparePsiElementForWrite(descriptor.psiElement)) return
68
68
KotlinGenerateEqualsAndHashcodeAction ().doInvoke(project, null , descriptor.psiElement.parent as KtClass )
You can’t perform that action at this time.
0 commit comments