diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-29 15:29:16 +0200 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2016-04-29 15:29:16 +0200 |
commit | 3356187ba8742cb987ca2c7bd543e2890bcedf29 (patch) | |
tree | e253b56b5ac180535caf4d77160b33593f9770bf /core/src/main/kotlin/Languages/JavaLanguageService.kt | |
parent | ad8af9c7d489026bbab66c1e79e9e2c3ffb694be (diff) | |
download | dokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.tar.gz dokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.tar.bz2 dokka-3356187ba8742cb987ca2c7bd543e2890bcedf29.zip |
don't report type parameters for array classes; don't report qualified names for stdlib types such as java.lang.String
Diffstat (limited to 'core/src/main/kotlin/Languages/JavaLanguageService.kt')
-rw-r--r-- | core/src/main/kotlin/Languages/JavaLanguageService.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Languages/JavaLanguageService.kt b/core/src/main/kotlin/Languages/JavaLanguageService.kt index f3b567d3..59bedd02 100644 --- a/core/src/main/kotlin/Languages/JavaLanguageService.kt +++ b/core/src/main/kotlin/Languages/JavaLanguageService.kt @@ -45,7 +45,8 @@ class JavaLanguageService : LanguageService { fun getArrayElementType(node: DocumentationNode): DocumentationNode? = when (node.qualifiedName()) { "kotlin.Array" -> - node.details(NodeKind.Type).singleOrNull()?.let { et -> getArrayElementType(et) ?: et } ?: DocumentationNode("Object", node.content, NodeKind.ExternalClass) + node.details(NodeKind.Type).singleOrNull()?.let { et -> getArrayElementType(et) ?: et } ?: + DocumentationNode("Object", node.content, NodeKind.ExternalClass) "kotlin.IntArray", "kotlin.LongArray", "kotlin.ShortArray", "kotlin.ByteArray", "kotlin.CharArray", "kotlin.DoubleArray", "kotlin.FloatArray", "kotlin.BooleanArray" -> |