Restore compatibility with Kotlin plugin broken in 3796f503b014f8268f9e992.

Base class with generic type was extracted. There used to be method 'updateComponent(PsiElement, Comparator)' but after refactoring it became 'updateComponent(T, Comparator)' which is effectively 'updateComponent(Object, Comparator)' in bytecode. To fix compatibility, it is enough to override the method with necessary signature in the old class.

GitOrigin-RevId: a01f60029e1b557d2b4b802ccdc57861a43730a9
This commit is contained in:
Sergey Patrikeev
2019-08-02 21:02:32 +03:00
committed by intellij-monorepo-bot
parent 0fd682892f
commit 0a7a5817bc
@@ -47,5 +47,12 @@ public abstract class BackgroundUpdaterTask extends BackgroundUpdaterTaskBase<Ps
protected Usage createUsage(PsiElement element) {
return new UsageInfo2UsageAdapter(new UsageInfo(element));
}
@Override
public boolean updateComponent(@NotNull PsiElement element, @Nullable Comparator comparator) {
//Ensures that method with signature `updateComponent(PsiElement, Comparator)` is present in bytecode,
//which is necessary for binary compatibility with some external plugins.
return super.updateComponent(element, comparator);
}
}