Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
API 2.16.2
-
None
Description
Currently <T> T get(@Nonnull String name, T defaultValue); does neither define a JSR 305 annotation for the return value nor for the 2nd parameter. It makes sense to define them both as @Nonnull, because if you intend to get null as return value you are supposed to take the other get method (@CheckForNull <T> T get(@Nonnull String name, @Nonnull Class<T> type))
Attachments
Attachments
Issue Links
- relates to
-
SLING-4377 Add JSR305 nullness annotations to Sling API
- Closed