Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9844

Nullness annotations must not be used on primitive types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.46.0
    • segment-tar
    • None

    Description

      Primitive types can never be null therefore using any nullness annotation on them is invalid. Also to prevent that an array is null the syntax needs to be

      <element type> <nullness annotation> [], e.g. byte @NotNull []
      

      Something like e.g. @NotNull byte [] is invalid (compare with https://stackoverflow.com/questions/62066166/string-notnull-syntax-causes-notnull-not-applicable-to-type-use-in-in).

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: