From 89fc2494b40624c03a74e01f2f4ec4941bb5314d Mon Sep 17 00:00:00 2001 From: Ignat Beresnev Date: Sun, 19 Jun 2022 17:30:05 +0200 Subject: Fix incorrectly labeling java properties as val/var (#2540) Fixes #2539 --- core/src/main/kotlin/model/documentableProperties.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/src/main/kotlin/model/documentableProperties.kt') diff --git a/core/src/main/kotlin/model/documentableProperties.kt b/core/src/main/kotlin/model/documentableProperties.kt index 87f40bd6..9fe8aa1d 100644 --- a/core/src/main/kotlin/model/documentableProperties.kt +++ b/core/src/main/kotlin/model/documentableProperties.kt @@ -39,6 +39,16 @@ object ObviousMember : ExtraProperty, ExtraProperty.Key = this } +/** + * Whether this [DProperty] is `var` or `val`, should be present both in Kotlin and in Java properties + * + * In case of properties that came from `Java`, [IsVar] is added if + * the java field has no accessors at all (plain field) or has a setter + */ +object IsVar : ExtraProperty, ExtraProperty.Key { + override val key: ExtraProperty.Key = this +} + data class CheckedExceptions(val exceptions: SourceSetDependent>) : ExtraProperty, ExtraProperty.Key { companion object : ExtraProperty.Key { override fun mergeStrategyFor(left: CheckedExceptions, right: CheckedExceptions) = -- cgit