aboutsummaryrefslogtreecommitdiff
path: root/plugins/base/src/main/kotlin/translators/psi
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-08-18 13:18:22 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-08-20 15:36:07 +0200
commit54df62709a37fc8f55bded26fd5db15f9eb0fd25 (patch)
tree347eb9eff50fdcc2a260f00c42989e0c7e4d1aff /plugins/base/src/main/kotlin/translators/psi
parenta9be511b052755258bc92225c4f5a8977f174b89 (diff)
downloaddokka-54df62709a37fc8f55bded26fd5db15f9eb0fd25.tar.gz
dokka-54df62709a37fc8f55bded26fd5db15f9eb0fd25.tar.bz2
dokka-54df62709a37fc8f55bded26fd5db15f9eb0fd25.zip
Hide unused generic type variables in constructor
Diffstat (limited to 'plugins/base/src/main/kotlin/translators/psi')
-rw-r--r--plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
index 8dee2478..c9118920 100644
--- a/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
+++ b/plugins/base/src/main/kotlin/translators/psi/DefaultPsiToDocumentableTranslator.kt
@@ -360,9 +360,9 @@ class DefaultPsiToDocumentableTranslator(
?: return UnresolvedBound(type.presentableText)
when {
resolved.qualifiedName == "java.lang.Object" -> JavaObject
- resolved is PsiTypeParameter && resolved.owner != null ->
+ resolved is PsiTypeParameter ->
TypeParameter(
- declarationDRI = DRI.from(resolved.owner!!),
+ dri = DRI.from(resolved),
name = resolved.name.orEmpty()
)
else ->