In java, we usually assign
null to a variable to let Garbage Collector works on it, but in Kotlin we can’t assign
null to a non-null variable.
In Java, this is legal:
String s = "String"; s = null
But in Kotlin, we can’t write this:
var s = "String" s = null
How to make garbage collector works with non-null variable?