From 4e7af2084c98f905b4fcd7fbe231c19bf186205d Mon Sep 17 00:00:00 2001 From: Paweł Marks Date: Wed, 18 Mar 2020 18:38:38 +0100 Subject: Make DefaultValue extra property actualy do something --- core/src/main/kotlin/model/defaultValues.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'core/src/main') 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 { - companion object : ExtraProperty.Key { - override fun mergeStrategyFor(left: DefaultValue, right: DefaultValue): MergeStrategy = if (left.value == right.value) - MergeStrategy.Replace(left) - else - MergeStrategy.Fail {throw IllegalStateException("Default values need to be the same")} - - } + companion object : ExtraProperty.Key override val key: ExtraProperty.Key get() = Companion -- cgit