Fix deprecation/unchecked warnings after update to 203

This commit is contained in:
Alexander Udalov
2021-07-08 20:40:26 +02:00
parent c6f754cf7a
commit 68432f0c20
5 changed files with 19 additions and 22 deletions
@@ -27,13 +27,15 @@ import org.jetbrains.kotlin.psi.stubs.KotlinClassOrObjectStub
import org.jetbrains.kotlin.psi.stubs.KotlinClassifierStub
import org.jetbrains.kotlin.psi.stubs.KotlinStubWithFqName
import java.lang.reflect.Method
import java.util.ArrayList
val STUB_TO_STRING_PREFIX = "KotlinStub$"
open class KotlinStubBaseImpl<T : KtElementImplStub<*>>(parent: StubElement<*>?, elementType: IStubElementType<*, *>) :
StubBase<T>(parent, elementType) {
override fun getStubType(): IStubElementType<out StubElement<*>, *> =
super.getStubType() as IStubElementType<out StubElement<*>, *>
override fun toString(): String {
val stubInterface = this::class.java.interfaces.single { it.name.contains("Stub") }
val propertiesValues = renderPropertyValues(stubInterface)