aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorPaweł Marks <pmarks@virtuslab.com>2020-03-18 18:38:38 +0100
committerPaweł Marks <pmarks@virtuslab.com>2020-03-18 18:38:38 +0100
commit4e7af2084c98f905b4fcd7fbe231c19bf186205d (patch)
tree0c06ae26c8426d71c205246d39bbbd8271228d49 /core/src/main
parentc92427162c3232cb54c73f63867258a31be526e9 (diff)
downloaddokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.tar.gz
dokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.tar.bz2
dokka-4e7af2084c98f905b4fcd7fbe231c19bf186205d.zip
Make DefaultValue extra property actualy do something
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/model/defaultValues.kt8
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