Make DeprecatedCallableAddReplaceWithInspection applicability based
Removes intention version of the same thing Includes some optimization of 'Deprecated' annotation detection
This commit is contained in:
-4
@@ -1,4 +0,0 @@
|
||||
@deprecated("Use newFun instead", <spot>ReplaceWith("newFun(null)")</spot>)
|
||||
fun oldFun(): Int {
|
||||
return newFun(null)
|
||||
}
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
@deprecated("Use newFun instead")
|
||||
fun oldFun(): Int {
|
||||
return newFun(null)
|
||||
}
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention adds a <b>kotlin.ReplaceWith</b> argument to a <b>kotlin.deprecated</b> annotation on a function or a property based on its body.
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user