You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomoko Uchida (Jira)" <ji...@apache.org> on 2019/09/06 09:51:00 UTC

[jira] [Updated] (LUCENE-8969) Fix abusive usage of asset in ArrayUtil

     [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org