Kapt: Fix type arguments order for JeDeclaredType, should not use substitutor

(cherry picked from commit a9c77e1)
This commit is contained in:
Yan Zhulanow
2016-08-12 03:30:02 +03:00
committed by Yan Zhulanow
parent d07e6c752b
commit 46f9e02c06
@@ -52,15 +52,7 @@ class JeDeclaredType(
if (psiType.isRaw) return emptyList()
return when (psiType) {
is PsiClassReferenceType -> {
val substitutor = psiType.resolveGenerics().substitutor
if (substitutor.isValid) {
substitutor.substitutionMap.map { it.value.toJeType(psiManager) }
}
else {
emptyList()
}
}
is PsiClassReferenceType -> psiType.parameters.map { it.toJeType(psiManager) }
else -> emptyList()
}
}