Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
while trying to add nullable/notnull annotations in sling-jcr-repoinit to improve overall readability and maintainability of the code base, i noticed that AclLine.getRestrictions may return null. I would recommend to change this to be consistent with AclLine.getProperty, which returns an empty list in case no values exist for a given property name.
Proposed patch attached (including replacing a private static final EMPTY_LIST field by Collections.emptyList, which afaik is also defined to be immutable.