Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-4284

ImmutableBeans: make reference properties non-nullable by default

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.25.0
    • Fix Version/s: 1.27.0
    • Component/s: core
    • Labels:
      None

      Description

      The rule of thumb is to avoid null, and it would be better to make properties non-nullable by default, and use annotations to permit nullable types.

      I believe that would make org.apache.calcite.util.ImmutableBeans.Property#required obsolete.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vladimirsitnikov Vladimir Sitnikov
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: