Skip to content

Commit c59b2c0

Browse files
committed
add missing annotations
1 parent 262dce0 commit c59b2c0

File tree

1 file changed

+6
-5
lines changed
  • kotlin-insight-client/kotlin-insight-client-api/src/main/kotlin/com/linkedplanet/kotlininsightclient/api/model

1 file changed

+6
-5
lines changed

kotlin-insight-client/kotlin-insight-client-api/src/main/kotlin/com/linkedplanet/kotlininsightclient/api/model/Model.kt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ sealed class ObjectTypeSchemaAttribute(
656656
/**
657657
* This is the "Additional Value" one can select when choosing object as the attribute type.
658658
*/
659-
enum class ReferenceKind(var referenceKindId: Int) {
659+
enum class ReferenceKind(val referenceKindId: Int) {
660660
UNKNOWN(-1),
661661
DEPENDENCY(1),
662662
LINK(2),
@@ -690,10 +690,11 @@ data class InsightUser(
690690
)
691691

692692
data class ReferencedObject(
693-
var id: InsightObjectId,
694-
var label: String,
695-
var objectKey: String,
696-
var objectType: ReferencedObjectType?
693+
@get:JvmName("getId")
694+
@field:NotNull val id: InsightObjectId,
695+
@field:NotNull val label: String,
696+
@field:NotNull val objectKey: String,
697+
val objectType: ReferencedObjectType?
697698
)
698699

699700
data class ReferencedObjectType(

0 commit comments

Comments
 (0)