Tomoko Uchida created LUCENE-8969:
-------------------------------------

             Summary: Fix abusive usage of asset in ArrayUtils
                 Key: LUCENE-8969
                 URL: https://issues.apache.org/jira/browse/LUCENE-8969
             Project: Lucene - Core
          Issue Type: Improvement
            Reporter: Tomoko Uchida


Methods in {{o.a.l.util.ArrayUtil}} uses {{assert}} statements for argument 
checks.
 It would be suitable to throw \{{IllegalArgumentExceptions}}s instead of 
assertions here, to improve traceability when the violations occur? Sometimes I 
had difficulty in identifying the cause of assertion errors...



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to