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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Alpha1, 4.3.0.Final
    • 3.0.5.Final
    • None
    • 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)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: