Avoid assigning null to a val in Kotlin

后端 未结 0 1658
梦毁少年i
梦毁少年i 2020-12-15 01:21

How could I avoid assigning null to userList in this code and get the same behaviour? Is it a bad practice?

fun update(type: Update) {
    fun List

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题