A facade light class inherits only java.lang.Object (EA-91597 - NPE: KtLightClassForFacade.getClsDelegate)

This commit is contained in:
Dmitry Jemerov
2016-11-21 17:00:09 +01:00
parent b696f9ee8d
commit d803831548
@@ -210,6 +210,10 @@ class KtLightClassForFacade private constructor(
override fun getElementIcon(flags: Int): Icon? = throw UnsupportedOperationException("This should be done by JetIconProvider")
override fun isInheritor(baseClass: PsiClass, checkDeep: Boolean): Boolean {
return baseClass.qualifiedName == CommonClassNames.JAVA_LANG_OBJECT
}
override fun hashCode() = hashCode
private fun computeHashCode(): Int {