diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-07-31 08:26:57 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | 5e50c7b9d5bc9da46365f43bd6f9346f91ad36f8 (patch) | |
tree | 76d20e3d74d471d87eaa0c060d6787861d8c4919 /plugins/javadoc | |
parent | aa21ab173d60bb69e50e7fc321e8b94c2815b6e8 (diff) | |
download | dokka-5e50c7b9d5bc9da46365f43bd6f9346f91ad36f8.tar.gz dokka-5e50c7b9d5bc9da46365f43bd6f9346f91ad36f8.tar.bz2 dokka-5e50c7b9d5bc9da46365f43bd6f9346f91ad36f8.zip |
Replace ExternalDocumentationLink.Builder with factory functions
Diffstat (limited to 'plugins/javadoc')
-rw-r--r-- | plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/location/JavadocLocationTest.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/location/JavadocLocationTest.kt b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/location/JavadocLocationTest.kt index dd56ad1d..afea5914 100644 --- a/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/location/JavadocLocationTest.kt +++ b/plugins/javadoc/src/test/kotlin/org/jetbrains/dokka/javadoc/location/JavadocLocationTest.kt @@ -4,6 +4,7 @@ import org.jetbrains.dokka.javadoc.pages.JavadocClasslikePageNode import org.jetbrains.dokka.javadoc.pages.JavadocPackagePageNode import org.jetbrains.dokka.javadoc.renderer.JavadocContentToHtmlTranslator import org.jetbrains.dokka.DokkaConfiguration +import org.jetbrains.dokka.ExternalDocumentationLink import org.jetbrains.dokka.ExternalDocumentationLinkImpl import org.jetbrains.dokka.javadoc.JavadocPlugin import org.jetbrains.dokka.model.firstChildOfType @@ -18,9 +19,7 @@ import org.junit.jupiter.api.Assertions.assertEquals class JavadocTest : AbstractCoreTest() { private fun locationTestInline(testHandler: (RootPageNode, DokkaContext) -> Unit) { - fun externalLink(link: String) = DokkaConfiguration.ExternalDocumentationLink - .Builder(link) - .build() as ExternalDocumentationLinkImpl + fun externalLink(link: String) = ExternalDocumentationLink(link) val config = dokkaConfiguration { format = "javadoc" |