diff options
author | Xerus <27jf@web.de> | 2018-12-13 17:45:46 +0100 |
---|---|---|
committer | Xerus <27jf@web.de> | 2018-12-13 17:45:46 +0100 |
commit | ec2dfa898b4cf2613ca15cd959a43f4f590005d3 (patch) | |
tree | 05d830e360633b36d580ce2759c83070e3c51bed /core/src/main/kotlin/javadoc/docbase.kt | |
parent | 17dd9747828a2ba8275714dc421a415c68d01615 (diff) | |
download | dokka-ec2dfa898b4cf2613ca15cd959a43f4f590005d3.tar.gz dokka-ec2dfa898b4cf2613ca15cd959a43f4f590005d3.tar.bz2 dokka-ec2dfa898b4cf2613ca15cd959a43f4f590005d3.zip |
Fix IDEA Inspections
Diffstat (limited to 'core/src/main/kotlin/javadoc/docbase.kt')
-rw-r--r-- | core/src/main/kotlin/javadoc/docbase.kt | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/src/main/kotlin/javadoc/docbase.kt b/core/src/main/kotlin/javadoc/docbase.kt index 2a14c6ff..f33b1324 100644 --- a/core/src/main/kotlin/javadoc/docbase.kt +++ b/core/src/main/kotlin/javadoc/docbase.kt @@ -326,8 +326,9 @@ open class ExecutableMemberAdapter(module: ModuleNodeAdapter, node: Documentatio override fun thrownExceptionTypes(): Array<out Type> = emptyArray() override fun receiverType(): Type? = receiverNode()?.let { receiver -> TypeAdapter(module, receiver) } - override fun flatSignature(): String = node.details(NodeKind.Parameter).map { JavaLanguageService().renderType(it) }.joinToString(", ", "(", ")") - override fun signature(): String = node.details(NodeKind.Parameter).map { JavaLanguageService().renderType(it) }.joinToString(", ", "(", ")") // TODO it should be FQ types + override fun flatSignature(): String = node.details(NodeKind.Parameter).joinToString(", ", "(", ")") { JavaLanguageService().renderType(it) } + override fun signature(): String = + node.details(NodeKind.Parameter).joinToString(", ", "(", ")") { JavaLanguageService().renderType(it) } // TODO it should be FQ types override fun parameters(): Array<out Parameter> = ((receiverNode()?.let { receiver -> listOf<Parameter>(ReceiverParameterAdapter(module, receiver, this)) } ?: emptyList()) @@ -469,10 +470,8 @@ open class ClassDocumentationNodeAdapter(module: ModuleNodeAdapter, val classNod } fun DocumentationNode.lookupSuperClasses(module: ModuleNodeAdapter) = - details(NodeKind.Supertype) - .map { it.links.firstOrNull() } - .map { module.allTypes[it?.qualifiedName()] } - .filterNotNull() + details(NodeKind.Supertype) + .map { it.links.firstOrNull() }.mapNotNull { module.allTypes[it?.qualifiedName()] } fun List<DocumentationNode>.collectAllTypesRecursively(): Map<String, DocumentationNode> { val result = hashMapOf<String, DocumentationNode>() |