Rename: Fix in-place rename on non-overriding functions
This commit is contained in:
+1
-1
@@ -143,7 +143,7 @@ class RenameKotlinFunctionProcessor : RenameKotlinPsiProcessor() {
|
|||||||
|
|
||||||
val deepestSuperMethods = wrappedMethod.findDeepestSuperMethods()
|
val deepestSuperMethods = wrappedMethod.findDeepestSuperMethods()
|
||||||
when {
|
when {
|
||||||
deepestSuperMethods.isEmpty() -> return
|
deepestSuperMethods.isEmpty() -> preprocessAndPass(element)
|
||||||
wrappedMethod.isConstructor || element !is KtNamedFunction -> {
|
wrappedMethod.isConstructor || element !is KtNamedFunction -> {
|
||||||
javaMethodProcessorInstance.substituteElementToRename(wrappedMethod, editor, Pass(::preprocessAndPass))
|
javaMethodProcessorInstance.substituteElementToRename(wrappedMethod, editor, Pass(::preprocessAndPass))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user