diff options
Diffstat (limited to 'core/src/main/kotlin/model/defaultValues.kt')
-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 |