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

Add missing JSR305 annotations to ResourceProvider

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: API 2.11.0
    • Fix Version/s: API 2.12.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently the o.a.s.spi.resource.provider.ResourceProvider is lacking some JSR305 annotations regarding their return values or parameters. Those are the methods

      1. getAttributeNames (may return null)
      2. authenticate is supposed to never return null, but does so in the abstract class, either the implementation or the annotation must be fixed
      3. getProviderContext (may return null)
      4. getAttribute (may return null)
      5. create (must not return null)
      6. copy and move (srcAbsPath and destAbsPath are not annotated)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kwin Konrad Windszus
                Reporter:
                kwin Konrad Windszus
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: