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

Switch from JSR-305 annotations to JetBrains Nullable/NotNull annotations

    XMLWordPrintableJSON

Description

    follow-up from SLING-7312 and discussion from the mailing list.
    i will also start a vote on the mailing list about this, but this ticket describes the steps that are required.

    about the jetbrains annotations:

    this search turned out that these modules are currently using JSR-305 annotations and need to be converted:

    Module Switch Released
    org-apache-sling-api  
    org-apache-sling-auth-core removed unused dependency  -
    org-apache-sling-caconfig-api  
    org-apache-sling-caconfig-impl  
    org-apache-sling-caconfig-spi  
    org-apache-sling-commons-clam  
    org-apache-sling-commons-messaging no release yet  -
    org-apache-sling-commons-messaging-mail no release yet  -
    org-apache-sling-discovery-commons  
    org-apache-sling-distribution-api  
    org-apache-sling-distribution-avro-serializer no release yet  -
    org-apache-sling-distribution-core unit test fails (already before)  
    org-apache-sling-distribution-kryo-serializer no release yet  -
    org-apache-sling-installer-core  
    org-apache-sling-jcr-api  
    org-apache-sling-jcr-resource  
    org-apache-sling-jms  
    org-apache-sling-jobs  
    org-apache-sling-jobs-it-services no release required  -
    org-apache-sling-models-api  
    org-apache-sling-models-impl  
    org-apache-sling-models-jacksonexporter  
    org-apache-sling-models-validation-impl no release yet  -
    org-apache-sling-mom  
    org-apache-sling-oak-restrictions  
    org-apache-sling-resource-presence  
    org-apache-sling-resourceresolver  
    org-apache-sling-scripting-core  
    org-apache-sling-scripting-sightly  
    org-apache-sling-scripting-thymeleaf  
    org-apache-sling-tracer  
    org-apache-sling-validation-api  
    org-apache-sling-validation-core  
    org-apache-sling-validation-test-services no release required  -
    org-apache-sling-xss  
    parent  
    whiteboard/encrypt no release required  -
    whiteboard/project-archetype/src/main/resources/archetype-resources no release required  -
    whiteboard/scripting-resolver/org-apache-sling-scripting-resolver no release required  -

    steps to do:

    1. convert java sources and poms to jetbrains annotations and update package versions with the help of the convert-annotations.sh from OAK-7511 provided by reschke described here
    2. update sling documentation: https://sling.apache.org/documentation/development/jsr-305.html

    Attachments

      Issue Links

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: