diff options
author | Andrzej Ratajczak <andrzej.ratajczak98@gmail.com> | 2020-06-23 13:37:58 +0200 |
---|---|---|
committer | Paweł Marks <Kordyjan@users.noreply.github.com> | 2020-06-24 10:47:42 +0200 |
commit | ded608b8e0c1fcde7b7e3c5089af49b379b7bab3 (patch) | |
tree | 470cd892fbb39667eb22b0ca208aa1ce4aef0629 /plugins/javadoc/src/main/kotlin | |
parent | b7c4beec1b6317b1ceaf2520464996e9ee0e93e5 (diff) | |
download | dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.gz dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.bz2 dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.zip |
Fix tests
Diffstat (limited to 'plugins/javadoc/src/main/kotlin')
-rw-r--r-- | plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt b/plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt index 22b0225b..600cdd99 100644 --- a/plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt +++ b/plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt @@ -278,7 +278,9 @@ class KorteJavadocRenderer(val outputWriter: OutputWriter, val context: DokkaCon .orEmpty() private fun renderClasslikeMethods(nodes: List<JavadocFunctionNode>): TemplateMap { - val (inherited, own) = nodes.partition { it.extras[InheritedFunction]?.isInherited ?: false } + val (inherited, own) = nodes.partition { it.extras[InheritedFunction]?.inheritedFrom?.any { + it.key.platform == Platform.jvm // TODO: REMOVE HARDCODED JVM DEPENDENCY + } ?: false } return mapOf( "own" to own.map { renderContentNodes(it) }, "inherited" to inherited.map { renderInheritedMethod(it) } |