I would like to newer have nulls for my fields which are type of "list"
As I understead below are points where object are initializated, so in these we should do something to initializate empty list in case of null.
- Controller (When object is comming from frontend)
- Initialization (new AnyObject() or AnyObject.toBuilder - lombok)
- FeginClient - Calls between Apis
Is there some framework/annotation which in case of null will set empty list?