Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-64

Annotation based marshallers should unmarshall empty repeatable fields as empty collections instead of null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.3.0.Alpha1, 4.3.0.Final
    • 3.0.5.Final
    • None

    Description

      They are currently set to null but it would be more useful to set them to empty collections.

      Protobuf does not have a representation for null or for empty/missing repeatable fields. Whether these are represented as null or empty collection in Java code is just a matter of convenience.

      Attachments

        Issue Links

          Activity

            People

              anistor Adrian Nistor (Inactive)
              anistor Adrian Nistor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: