Merge pull request #937 from shiraji/useless_elvis_with_null

KT-13521 Warning right part of "expression ?: null" is useless
This commit is contained in:
Mikhail Glukhikh
2016-08-22 19:38:09 +03:00
committed by GitHub
7 changed files with 47 additions and 0 deletions
@@ -98,6 +98,7 @@ class QuickFixRegistrar : QuickFixContributor {
WRONG_GETTER_RETURN_TYPE.registerFactory(ChangeAccessorTypeFix)
USELESS_ELVIS.registerFactory(RemoveUselessElvisFix)
USELESS_ELVIS_RIGHT_IS_NULL.registerFactory(RemoveUselessElvisFix)
val removeRedundantModifierFactory = RemoveModifierFix.createRemoveModifierFactory(true)
REDUNDANT_MODIFIER.registerFactory(removeRedundantModifierFactory)