strelok
08/01/2017, 2:45 AMlateinit var can't be used as it can't be a nullable type I don't want to use Optional as it doesn't seem the "kotlin way". Basically what would be the kotlin way for the following pure code:
public class Component {
public Component(Required required, Optional<NotRequired> optional) {....}
}
or alternatively the OLD spring annotated way
public class Component {
@Autowired(required=false) NotRequired optional;
public Component(Required required) {....}
}