aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src/main/kotlin
diff options
context:
space:
mode:
authorAndrzej Ratajczak <andrzej.ratajczak98@gmail.com>2020-06-23 13:37:58 +0200
committerPaweł Marks <Kordyjan@users.noreply.github.com>2020-06-24 10:47:42 +0200
commitded608b8e0c1fcde7b7e3c5089af49b379b7bab3 (patch)
tree470cd892fbb39667eb22b0ca208aa1ce4aef0629 /plugins/javadoc/src/main/kotlin
parentb7c4beec1b6317b1ceaf2520464996e9ee0e93e5 (diff)
downloaddokka-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.kt4
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) }