Change Signature: Yield to other usage processor if target element is neither KtFunction, nor PsiMethod

#KT-13277 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-11 20:33:21 +03:00
parent e6d96be329
commit f4d9f33f48
2 changed files with 2 additions and 1 deletions
@@ -843,7 +843,7 @@ class KotlinChangeSignatureUsageProcessor : ChangeSignatureUsageProcessor {
}
if (beforeMethodChange) {
if (method !is PsiMethod || initializedOriginalDescriptor) return true
if (method !is PsiMethod || initializedOriginalDescriptor) return false
val descriptorWrapper = usages.firstIsInstanceOrNull<OriginalJavaMethodDescriptorWrapper>()
if (descriptorWrapper == null || descriptorWrapper.originalJavaMethodDescriptor != null) return true