Make DeprecatedCallableAddReplaceWithInspection applicability based

Removes intention version of the same thing
Includes some optimization of 'Deprecated' annotation detection
This commit is contained in:
Mikhail Glukhikh
2018-03-27 16:53:20 +03:00
parent ab973b2ff0
commit 2125c42328
54 changed files with 245 additions and 262 deletions
@@ -0,0 +1,10 @@
@Deprecated("", ReplaceWith("if (p > 0) bar1(p) else bar2(p)"))
fun foo(p: Int) {
if (p > 0)
bar1(p)
else
bar2(p)
}
fun bar1(p: Int){}
fun bar2(p: Int){}