From 8b4d2b02bfcb45debd836b0211f0cb732abd5a8e Mon Sep 17 00:00:00 2001 From: Nikita Klimenko Date: Thu, 27 Jun 2024 18:29:07 +0300 Subject: [PATCH] Revert filter condition, fixes broken logic --- .../org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt index 08c6251a7..49e2a77be 100644 --- a/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt +++ b/core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt @@ -55,7 +55,7 @@ internal object MarkersExtractor { private fun getFields(markerClass: KClass<*>, nullableProperties: Boolean): List { val order = getPropertyOrderFromPrimaryConstructor(markerClass) ?: emptyMap() - val structuralProperties = markerClass.memberProperties.filter { it.hasAnnotation() } + val structuralProperties = markerClass.memberProperties.filter { !it.hasAnnotation() } return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.mapIndexed { _, it -> val fieldName = ValidFieldName.of(it.name) val columnName = it.findAnnotation()?.name ?: fieldName.unquoted