Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-453

Eliminate the diffence between null and empty nodes

    XMLWordPrintable

Details

    • Task
    • Status: Resolved
    • Medium
    • Resolution: Won't Do
    • None
    • None
    • None

    Description

      Binding list/map treatment should make sure we do not return nulls here, as it imposes additional burden on the user. When a list/map does not exist, we should return an empty immutable list/map, so that things are kept consistent.

      This automatically means DTOs do not leak mutable maps, no matter what. Even when a map is initialized (empty in this case, but we are generalizing here) to an HashMap in the builder, it is fair for the resulting object to return an immutable implementation (i.e. an empty ImmutableMap).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: