aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Languages/JavaLanguageService.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-04-29 15:29:16 +0200
committerDmitry Jemerov <yole@jetbrains.com>2016-04-29 15:29:16 +0200
commit3356187ba8742cb987ca2c7bd543e2890bcedf29 (patch)
treee253b56b5ac180535caf4d77160b33593f9770bf /core/src/main/kotlin/Languages/JavaLanguageService.kt
parentad8af9c7d489026bbab66c1e79e9e2c3ffb694be (diff)
downloaddokka-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.kt3
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" ->