You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Angela Schreiber (Jira)" <ji...@apache.org> on 2021/09/01 15:16:00 UTC
[jira] [Created] (SLING-10779)
ContentPackage2FeatureModelConverter.getAclManager should never return null
Angela Schreiber created SLING-10779:
----------------------------------------
Summary: ContentPackage2FeatureModelConverter.getAclManager should never return null
Key: SLING-10779
URL: https://issues.apache.org/jira/browse/SLING-10779
Project: Sling
Issue Type: Improvement
Components: Content-Package to Feature Model Converter
Reporter: Angela Schreiber
{{ContentPackage2FeatureModelConverter.getAclManager}} is used across the converter code base and always expected to be not-null. so, instead of defining it as 'nullable' we should find ways to make sure it is always present on the converter. this would allow to get rid of Objects.requireNotNull and the warnings about potential NPE where the check is missing.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)