diff options
author | Paweł Marks <pmarks@virtuslab.com> | 2020-03-18 18:38:38 +0100 |
---|---|---|
committer | Paweł Marks <pmarks@virtuslab.com> | 2020-03-18 18:38:38 +0100 |
commit | 4e7af2084c98f905b4fcd7fbe231c19bf186205d (patch) | |
tree | 0c06ae26c8426d71c205246d39bbbd8271228d49 /core | |
parent | c92427162c3232cb54c73f63867258a31be526e9 (diff) | |
download | dokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.tar.gz dokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.tar.bz2 dokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.zip |
Make DefaultValue extra property actualy do something
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/model/defaultValues.kt | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/src/main/kotlin/model/defaultValues.kt b/core/src/main/kotlin/model/defaultValues.kt index 63b69cbb..10f6d16d 100644 --- a/core/src/main/kotlin/model/defaultValues.kt +++ b/core/src/main/kotlin/model/defaultValues.kt @@ -5,13 +5,7 @@ import org.jetbrains.dokka.model.properties.MergeStrategy import java.lang.IllegalStateException class DefaultValue(val value: String): ExtraProperty<DParameter> { - companion object : ExtraProperty.Key<DParameter, DefaultValue> { - override fun mergeStrategyFor(left: DefaultValue, right: DefaultValue): MergeStrategy<DParameter> = if (left.value == right.value) - MergeStrategy.Replace(left) - else - MergeStrategy.Fail {throw IllegalStateException("Default values need to be the same")} - - } + companion object : ExtraProperty.Key<DParameter, DefaultValue> override val key: ExtraProperty.Key<DParameter, *> get() = Companion |