Change Signature: Fix element bound to UsageInfo

This commit is contained in:
Alexey Sedunov
2015-04-16 14:31:59 +03:00
parent 8a04a604ce
commit 58bee8c57f
@@ -25,7 +25,7 @@ import org.jetbrains.kotlin.descriptors.FunctionDescriptor
public abstract class JavaMethodKotlinUsageWithDelegate<T: PsiElement>(
val psiElement: T,
val javaMethodChangeInfo: JetChangeInfo): UsageInfo(javaMethodChangeInfo.getMethod()) {
val javaMethodChangeInfo: JetChangeInfo): UsageInfo(psiElement) {
protected abstract val delegateUsage: JetUsageInfo<T>
fun processUsage(): Boolean = delegateUsage.processUsage(javaMethodChangeInfo, psiElement)