From 3356187ba8742cb987ca2c7bd543e2890bcedf29 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 29 Apr 2016 15:29:16 +0200 Subject: don't report type parameters for array classes; don't report qualified names for stdlib types such as java.lang.String --- core/src/main/kotlin/Languages/JavaLanguageService.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/src/main/kotlin/Languages/JavaLanguageService.kt') 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" -> -- cgit