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

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

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

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

      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.

              anistor Adrian Nistor (Inactive)
              anistor Adrian Nistor (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: