aboutsummaryrefslogtreecommitdiff
path: root/plugins/javadoc/src
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
parentb7c4beec1b6317b1ceaf2520464996e9ee0e93e5 (diff)
downloaddokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.gz
dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.tar.bz2
dokka-ded608b8e0c1fcde7b7e3c5089af49b379b7bab3.zip
Fix tests
Diffstat (limited to 'plugins/javadoc/src')
-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")
}
}
}