KT-12297 related: make not open quick-fix for REDUNDANT_OPEN_IN_INTERFACE
This commit is contained in:
@@ -104,7 +104,7 @@ class QuickFixRegistrar : QuickFixContributor {
|
|||||||
|
|
||||||
val removeRedundantModifierFactory = RemoveModifierFix.createRemoveModifierFactory(true)
|
val removeRedundantModifierFactory = RemoveModifierFix.createRemoveModifierFactory(true)
|
||||||
REDUNDANT_MODIFIER.registerFactory(removeRedundantModifierFactory)
|
REDUNDANT_MODIFIER.registerFactory(removeRedundantModifierFactory)
|
||||||
REDUNDANT_OPEN_IN_INTERFACE.registerFactory(removeRedundantModifierFactory)
|
REDUNDANT_OPEN_IN_INTERFACE.registerFactory(RemoveModifierFix.createRemoveModifierFromListOwnerFactory(OPEN_KEYWORD))
|
||||||
|
|
||||||
REDUNDANT_PROJECTION.registerFactory(RemoveModifierFix.createRemoveProjectionFactory(true))
|
REDUNDANT_PROJECTION.registerFactory(RemoveModifierFix.createRemoveProjectionFactory(true))
|
||||||
INCOMPATIBLE_MODIFIERS.registerFactory(RemoveModifierFix.createRemoveModifierFactory(false))
|
INCOMPATIBLE_MODIFIERS.registerFactory(RemoveModifierFix.createRemoveModifierFactory(false))
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// "Make 'foo' not open" "true"
|
||||||
|
|
||||||
|
interface My {
|
||||||
|
<caret>open fun foo()
|
||||||
|
}
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
// "Make 'foo' not open" "true"
|
||||||
|
|
||||||
|
interface My {
|
||||||
|
fun foo()
|
||||||
|
}
|
||||||
@@ -6114,6 +6114,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("redundantOpenInInterface.kt")
|
||||||
|
public void testRedundantOpenInInterface() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/redundantOpenInInterface.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("removeAbstractModifier.kt")
|
@TestMetadata("removeAbstractModifier.kt")
|
||||||
public void testRemoveAbstractModifier() throws Exception {
|
public void testRemoveAbstractModifier() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/removeAbstractModifier.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/modifiers/removeAbstractModifier.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user