aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Java/JavaDocumentationBuilder.kt7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Java/JavaDocumentationBuilder.kt b/src/Java/JavaDocumentationBuilder.kt
index ba766e3f..55f9017b 100644
--- a/src/Java/JavaDocumentationBuilder.kt
+++ b/src/Java/JavaDocumentationBuilder.kt
@@ -129,10 +129,15 @@ public class JavaDocumentationBuilder(private val options: DocumentationOptions,
is PsiField -> element.getContainingClass().getQualifiedName() + "#" + element.getName()
is PsiMethod ->
element.getContainingClass().getQualifiedName() + "#" + element.getName() + "(" +
- element.getParameterList().getParameters().map { it.getType().getCanonicalText() }.join(",") + ")"
+ element.getParameterList().getParameters().map { it.getType().typeSignature() }.join(",") + ")"
else -> null
}
+ private fun PsiType.typeSignature(): String = when(this) {
+ is PsiArrayType -> "Array<${getComponentType().typeSignature()}>"
+ else -> mapTypeName(this)
+ }
+
fun DocumentationNode(element: PsiNamedElement,
kind: Kind,
name: String = element.getName() ?: "<anonymous>"): DocumentationNode {