[
https://issues.apache.org/jira/browse/LUCENE-8969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tomoko Uchida updated LUCENE-8969:
----------------------------------
Summary: Fix abusive usage of asset in ArrayUtil (was: Fix abusive usage
of asset in ArrayUtils)
> Fix abusive usage of asset in ArrayUtil
> ---------------------------------------
>
> Key: LUCENE-8969
> URL: https://issues.apache.org/jira/browse/LUCENE-8969
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Tomoko Uchida
> Priority: Minor
>
> 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: [email protected]
For additional commands, e-mail: [email protected]