Misleading quick fix message for an 'open' modifier on an interface member #KT-18738 Fixed

This commit is contained in:
Toshiaki Kameyama
2017-07-18 18:59:22 +09:00
parent d2dbc47454
commit f8cf0f2ab9
3 changed files with 3 additions and 3 deletions
@@ -108,7 +108,7 @@ class QuickFixRegistrar : QuickFixContributor {
val removeRedundantModifierFactory = RemoveModifierFix.createRemoveModifierFactory(true)
REDUNDANT_MODIFIER.registerFactory(removeRedundantModifierFactory)
REDUNDANT_OPEN_IN_INTERFACE.registerFactory(RemoveModifierFix.createRemoveModifierFromListOwnerFactory(OPEN_KEYWORD))
REDUNDANT_OPEN_IN_INTERFACE.registerFactory(RemoveModifierFix.createRemoveModifierFromListOwnerFactory(OPEN_KEYWORD, true))
UNNECESSARY_LATEINIT.registerFactory(RemoveModifierFix.createRemoveModifierFromListOwnerFactory(LATEINIT_KEYWORD))
REDUNDANT_PROJECTION.registerFactory(RemoveModifierFix.createRemoveProjectionFactory(true))
@@ -1,4 +1,4 @@
// "Make 'foo' not open" "true"
// "Remove redundant 'open' modifier" "true"
interface My {
<caret>open fun foo()
@@ -1,4 +1,4 @@
// "Make 'foo' not open" "true"
// "Remove redundant 'open' modifier" "true"
interface My {
fun foo()