Currently @ConfigField requires concrete classes and interfaces won't work so instead of using List<String> we have to use ArrayList<String>.
@ConfigField
List<String>
ArrayList<String>
It should be possible to use interfaces just fine, and in that case we could use Collections.unmodifiable____().
Collections.unmodifiable____()
I've modified source code to allow List, Set and Collection interfaces and I'm using unmodifiable instances of those types as values.
List
Set
Collection
Currently
@ConfigField
requires concrete classes and interfaces won't work so instead of usingList<String>
we have to useArrayList<String>
.It should be possible to use interfaces just fine, and in that case we could use
Collections.unmodifiable____()
.