David Kubecka
02/06/2025, 10:47 AMaccountNumber
data class Account (
@get:JsonProperty("accountNumber")
val accountNumber: kotlin.String? = null
)
considered to have a custom getter? Because that's what compiler complains about when I try to do this:
val account: Account = TODO()
checkNotNull(account.accountNumber)
val number: String = account.accountNumber // error here
Why is it so?Riccardo Lippolis
02/06/2025, 10:53 AMdmitriy.novozhilov
02/06/2025, 10:54 AMdmitriy.novozhilov
02/06/2025, 10:57 AMDavid Kubecka
02/06/2025, 11:15 AMdmitriy.novozhilov
02/06/2025, 11:16 AMDavid Kubecka
02/06/2025, 11:22 AM@get:JsonProperty("accountNumber")
considered a custom getter? It actually doesn't influence the field value in any way, does it?dmitriy.novozhilov
02/06/2025, 11:23 AM