SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using Spring container and you want to initialize non-nullable bean field, lateinit is better suited.
lateinit
@Autowired lateinit var myBean: MyBean