FreeBuilder icon indicating copy to clipboard operation
FreeBuilder copied to clipboard

Nullable collection elements

Open alicederyn opened this issue 8 years ago • 2 comments

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.

alicederyn avatar May 10 '16 11:05 alicederyn

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.

mateuszlitwin avatar May 10 '16 11:05 mateuszlitwin

We're unlikely to be working on pre–Java 8 features in future TBH. Issue #14 may match your requirements, though.

alicederyn avatar May 10 '16 11:05 alicederyn