Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-492

Annotate type wrapper objects' getValue() as @NonNull

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 6.0.0
    • Binding codegen
    • None

    Description

      Wrapper objects are enforcing the hard-coded property ('value') to be non-null, but this is not reflected in the getter nor do we take advantage of non-nullness during hashCode()/equals() implementations.

      Add the ability for TypeGenerator to mark individual (simple?) properties as non-nullable and take it into account in the java-api-generator, propagating it to fields and getters.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: