Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7723

XSS API is using other JSR-305 annotations than the rest of Sling

    XMLWordPrintableJSON

Details

    Description

      According to https://sling.apache.org/documentation/development/jsr-305.html only two different annotations are supposed to be used:

      javax.annotation.CheckForNull
      javax.annotation.Nonnull
      

      The XSSAPI uses though

      javax.annotation.Nullable
      javax.annotation.Nonnull
      

      Since it is trickier to setup the IDE to support both Nullable and CheckForNull and also FindBugs is only supporting the latter, I would recommend to switch to CheckForNull for return values which might be null. Every method argument which is not explicitly marked as Nonnull is always considered Nullable by every tool!

      Attachments

        Issue Links

          Activity

            People

              sseifert Stefan Seifert
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: