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

Annotate type wrapper objects' getValue() as @NonNull

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 6.0.0
    • None
    • Binding codegen
    • None

      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.

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

              Created:
              Updated:
              Resolved: