diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-06-30 17:09:58 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-06-30 17:09:58 +0200 |
commit | af27102b662439b4f7ccdeaf2195c93ba533c7be (patch) | |
tree | 315c4b3943cf88b4d42de76f617bdfe32dbbf7a9 /core/src/main/kotlin/Java | |
parent | d1fc5f1610e646718afc6d9dfc6c5a3650350ea4 (diff) | |
download | dokka-af27102b662439b4f7ccdeaf2195c93ba533c7be.tar.gz dokka-af27102b662439b4f7ccdeaf2195c93ba533c7be.tar.bz2 dokka-af27102b662439b4f7ccdeaf2195c93ba533c7be.zip |
Generate correct signature for methods with parameters of Java primitive types. Resolves #76
Diffstat (limited to 'core/src/main/kotlin/Java')
-rw-r--r-- | core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt index 39ad79a6..d2748ee3 100644 --- a/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt +++ b/core/src/main/kotlin/Java/JavaPsiDocumentationBuilder.kt @@ -15,6 +15,7 @@ fun getSignature(element: PsiElement?) = when(element) { private fun PsiType.typeSignature(): String = when(this) { is PsiArrayType -> "Array((${componentType.typeSignature()}))" + is PsiPrimitiveType -> "kotlin." + canonicalText.capitalize() else -> mapTypeName(this) } |