Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
API 2.11.0
-
None
Description
Currently all methods being defined on org.apache.sling.api.servlets are carrying the @Nonnull annotation (https://github.com/apache/sling/blob/trunk/bundles/api/src/main/java/org/apache/sling/api/servlets/ServletResolver.java). According to the implementation this is wrong and all three may return null in case there was no appropriate servlet found (https://github.com/apache/sling/blob/trunk/bundles/servlets/resolver/src/main/java/org/apache/sling/servlets/resolver/internal/SlingServletResolver.java).
The javadoc as well as the null annotations should be adjusted.
Attachments
Issue Links
- relates to
-
SLING-5607 SlingServletResolver.resolveServlet should never return null
- Resolved