The creation of an exception is magnitudes more expensive than standard java objects like `ArrayList`. But you are right: The creation of the list itself could be optimized, too.
The changes have been made based on version 1.4.4 since this is used in our production environment. I will rebase the branch to master to avoid the merge conflicts shown above. [ Full content available at: https://github.com/apache/sling-org-apache-sling-models-impl/pull/7 ] This message was relayed via gitbox.apache.org for [email protected]
