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

ImmutableBeans: make reference properties non-nullable by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.25.0
    • 1.27.0
    • core
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: