diff options
author | Marcin Aman <marcin.aman@gmail.com> | 2021-01-20 10:30:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-20 10:30:50 +0100 |
commit | 93520158b4be59f98015d07e8fecaa7e5a49fd99 (patch) | |
tree | 24c57c752bb7f3125f6248ebae232a69bec8efb6 /core/src/main | |
parent | 9f7dc9cc0183c74fc77c63297eb73f936715d77d (diff) | |
download | dokka-93520158b4be59f98015d07e8fecaa7e5a49fd99.tar.gz dokka-93520158b4be59f98015d07e8fecaa7e5a49fd99.tar.bz2 dokka-93520158b4be59f98015d07e8fecaa7e5a49fd99.zip |
Bring back displaying jvm name when KaJ is not present (#1702)
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/model/properties/PropertyContainer.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/main/kotlin/model/properties/PropertyContainer.kt b/core/src/main/kotlin/model/properties/PropertyContainer.kt index 162f1bc8..d217ceee 100644 --- a/core/src/main/kotlin/model/properties/PropertyContainer.kt +++ b/core/src/main/kotlin/model/properties/PropertyContainer.kt @@ -16,6 +16,9 @@ data class PropertyContainer<C : Any> internal constructor( fun <D : C> addAll(extras: Collection<ExtraProperty<D>>): PropertyContainer<D> = PropertyContainer(map + extras.map { p -> p.key to p }) + operator fun <D : C> minus(prop: ExtraProperty.Key<C, *>): PropertyContainer<D> = + PropertyContainer(map.filterNot { it.key == prop }) + companion object { fun <T : Any> empty(): PropertyContainer<T> = PropertyContainer(emptyMap()) fun <T : Any> withAll(vararg extras: ExtraProperty<T>?) = empty<T>().addAll(extras.filterNotNull()) |