aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/javadoc')
-rw-r--r--plugins/javadoc/src/main/kotlin/javadoc/KorteJavadocRenderer.kt4
-rw-r--r--plugins/javadoc/src/test/kotlin/javadoc/JavadocTest.kt1
2 files changed, 3 insertions, 2 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) }
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")
}
}
}