diff options
Diffstat (limited to 'core/src')
-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" }) } } |