From 3f8c99cf04893da8fc3c353cba0133dc54e5febe Mon Sep 17 00:00:00 2001 From: "sebastian.sellmair" Date: Fri, 14 Aug 2020 16:02:42 +0200 Subject: Use java.net.URL consistently across Gradle Plugin API surface --- plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/base/src/test/kotlin') diff --git a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt index 40c87b75..f93678a4 100644 --- a/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt +++ b/plugins/base/src/test/kotlin/linkableContent/LinkableContentTest.kt @@ -12,6 +12,7 @@ import org.jetbrains.kotlin.utils.addToStdlib.cast import org.jetbrains.kotlin.utils.addToStdlib.safeAs import org.junit.jupiter.api.Assertions import org.junit.jupiter.api.Test +import java.net.URL import java.nio.file.Paths class LinkableContentTest : AbstractCoreTest() { @@ -70,7 +71,7 @@ class LinkableContentTest : AbstractCoreTest() { sourceLinks = listOf( SourceLinkDefinitionImpl( localDirectory = "jsMain/kotlin", - remoteUrl = "https://github.com/user/repo/tree/master/src/jsMain/kotlin", + remoteUrl = URL("https://github.com/user/repo/tree/master/src/jsMain/kotlin"), remoteLineSuffix = "#L" ) ) @@ -83,7 +84,7 @@ class LinkableContentTest : AbstractCoreTest() { sourceLinks = listOf( SourceLinkDefinitionImpl( localDirectory = "jvmMain/kotlin", - remoteUrl = "https://github.com/user/repo/tree/master/src/jvmMain/kotlin", + remoteUrl = URL("https://github.com/user/repo/tree/master/src/jvmMain/kotlin"), remoteLineSuffix = "#L" ) ) -- cgit