Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-7481

Annotate optional fields in definition, throw MgnlInstantiationException and add severe problem if mandatory field is missing

    XMLWordPrintable

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

        Attachments

          Activity

            People

              Unassigned Unassigned
              efochr Evzen Fochr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD