FreeBuilder
FreeBuilder copied to clipboard
Nullable collection elements
With Java 8, we can now annotate generic type parameters, allowing us to support properties like List<@Nullable String>
. This would have to disable nullness checking and drop use of Guava's immutable types, which don't support nulls.
This would be great.
For Java 7 it would be nice to be able to specify container for a collection or make it a normal attribute - so builder will not have put/add methods and you can set value of a collection to e.g. instance of HashMap with some nulls inside.
We're unlikely to be working on pre–Java 8 features in future TBH. Issue #14 may match your requirements, though.