Skip to content

Commit 67d304e

Browse files
committed
fix(model-api): make SimpleProperty a data class
Among other advantages, this makes error messages with simple properties easier to read because of the overridden toString().
1 parent 893a4aa commit 67d304e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model-api/src/commonMain/kotlin/org/modelix/model/api/SimpleProperty.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ package org.modelix.model.api
1515

1616
import kotlin.jvm.JvmOverloads
1717

18-
class SimpleProperty
18+
data class SimpleProperty
1919
@JvmOverloads constructor(
2020
private val simpleName: String,
2121
override val isOptional: Boolean = true,

0 commit comments

Comments
 (0)