Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
Annotate optional fields in definition and consider all other fields as mandatory, throw MgnlInstantiationException and add severe problem if mandatory field is missing.
Usecase: Get rid of all null checks when getting mandatory fields from any definition.
Another possible implementation is usage of Optional<> and MtB can just add Optional.empty() is field is not found.
Checklists
Acceptance criteria