From ded608b8e0c1fcde7b7e3c5089af49b379b7bab3 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Tue, 23 Jun 2020 13:37:58 +0200 Subject: Fix tests --- plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt | 4 +++- plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/javadoc/src') 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): 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) } diff --git a/plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt b/plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt index 8a31e596..45e97945 100644 --- a/plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt +++ b/plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt @@ -14,7 +14,6 @@ class JavadocTest : AbstractCoreTest() { pass { sourceRoots = listOf("jvmSrc/") analysisPlatform = "jvm" - targets = listOf("jvm") } } } -- cgit