diff options
author | sebastian.sellmair <sebastian.sellmair@jetbrains.com> | 2020-08-14 16:02:42 +0200 |
---|---|---|
committer | Sebastian Sellmair <34319766+sellmair@users.noreply.github.com> | 2020-08-14 17:51:11 +0200 |
commit | 3f8c99cf04893da8fc3c353cba0133dc54e5febe (patch) | |
tree | 95f5b541ad583f85da5130ca01dbff45ec889e6c /core | |
parent | f655b97cffd875a33618f4326e0a890d3e73ce24 (diff) | |
download | dokka-3f8c99cf04893da8fc3c353cba0133dc54e5febe.tar.gz dokka-3f8c99cf04893da8fc3c353cba0133dc54e5febe.tar.bz2 dokka-3f8c99cf04893da8fc3c353cba0133dc54e5febe.zip |
Use java.net.URL consistently across Gradle Plugin API surface
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/configuration.kt | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/defaultConfiguration.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/main/kotlin/configuration.kt b/core/src/main/kotlin/configuration.kt index 4c722a37..2aa252e1 100644 --- a/core/src/main/kotlin/configuration.kt +++ b/core/src/main/kotlin/configuration.kt @@ -108,7 +108,7 @@ interface DokkaConfiguration : Serializable { interface SourceLinkDefinition : Serializable { val localDirectory: String - val remoteUrl: String + val remoteUrl: URL val remoteLineSuffix: String? } diff --git a/core/src/main/kotlin/defaultConfiguration.kt b/core/src/main/kotlin/defaultConfiguration.kt index f37c1add..8bd2d976 100644 --- a/core/src/main/kotlin/defaultConfiguration.kt +++ b/core/src/main/kotlin/defaultConfiguration.kt @@ -49,7 +49,7 @@ data class DokkaModuleDescriptionImpl( data class SourceLinkDefinitionImpl( override val localDirectory: String, - override val remoteUrl: String, + override val remoteUrl: URL, override val remoteLineSuffix: String? ) : DokkaConfiguration.SourceLinkDefinition { companion object { @@ -57,7 +57,7 @@ data class SourceLinkDefinitionImpl( val (path, urlAndLine) = srcLink.split('=') return SourceLinkDefinitionImpl( File(path).canonicalPath, - urlAndLine.substringBefore("#"), + URL(urlAndLine.substringBefore("#")), urlAndLine.substringAfter("#", "").let { if (it.isEmpty()) null else "#$it" }) } } |