Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
the following 2 methods can be simplified in ExternalGroupPrincipalProvider
- getGroupPrincipals: userTree.hasProperty(REP_EXTERNAL_PRINCIPAL_NAMES) can be omitted from the if clause, as the return value of getProperty is anyway checked for null.
- ExternalGroupPrincipalProvider.GroupPrincipalIterator.getNext(): the PropertyValue as obtained from the ResultRow will never contain null elements and the extra check for null can be omitted. if extra defensiveness is desired the values could be filtered for null elements.