Skip to content

Commit f6a572b

Browse files
authored
Merge pull request #791 from GeorgCantor/patch-1
Update MarkersExtractor.kt
2 parents 55e2473 + 6855140 commit f6a572b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/codeGen/MarkersExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ internal object MarkersExtractor {
7575
private fun getFields(markerClass: KClass<*>, nullableProperties: Boolean): List<GeneratedField> {
7676
val order = getPropertyOrderFromPrimaryConstructor(markerClass) ?: emptyMap()
7777
val structuralProperties = markerClass.memberProperties.filter { !it.hasAnnotation<ScopeProperty>() }
78-
return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.mapIndexed { _, it ->
78+
return structuralProperties.sortedBy { order[it.name] ?: Int.MAX_VALUE }.map {
7979
val fieldName = ValidFieldName.of(it.name)
8080
val columnName = it.findAnnotation<ColumnName>()?.name ?: fieldName.unquoted
8181
val type = it.returnType

0 commit comments

Comments
 (0)