I would do var with the lateinit modifier, that wa...
# getting-started
k
I would do var with the lateinit modifier, that way you won't run into possible unexpected behaviour. As to how they change a val (aka final) field, java reflection can do this: https://stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflection