aboutsummaryrefslogtreecommitdiff
path: root/src/Java
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:37:27 +0100
committerDmitry Jemerov <yole@jetbrains.com>2015-02-16 12:37:27 +0100
commit555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4 (patch)
treee5a2b1b9a1e76f0b23d27e057b545f411eeead70 /src/Java
parent4a458963ff15d113d7833cebba55065a910b135c (diff)
downloaddokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.tar.gz
dokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.tar.bz2
dokka-555f9cf07ada20ffc947dd57ebb3cdcb6a020ab4.zip
represent array types as type with type parameter
Diffstat (limited to 'src/Java')
-rw-r--r--src/Java/JavaDocumentationBuilder.kt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index 9d8c85a9..c30e6f06 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -147,6 +147,9 @@ public class JavaDocumentationBuilder() {
if (this is PsiClassType) {
node.appendDetails(getParameters()) { build(Kind.TypeParameter) }
}
+ if (this is PsiArrayType) {
+ node.append(getComponentType().build(Kind.TypeParameter), DocumentationReference.Kind.Detail)
+ }
return node
}
@@ -155,7 +158,7 @@ public class JavaDocumentationBuilder() {
is PsiPrimitiveType -> psiType.getCanonicalText().capitalize()
is PsiClassType -> psiType.getClassName()
is PsiEllipsisType -> mapTypeName(psiType.getComponentType())
- is PsiArrayType -> "Array<${mapTypeName(psiType.getComponentType())}>"
+ is PsiArrayType -> "Array"
else -> psiType.getCanonicalText()
}
}