You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sis.apache.org by "Martin Desruisseaux (Jira)" <ji...@apache.org> on 2023/09/25 16:57:00 UTC

[jira] [Resolved] (SIS-562) Deprecate and remove NullArgumentException

     [ https://issues.apache.org/jira/browse/SIS-562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Desruisseaux resolved SIS-562.
-------------------------------------
    Resolution: Fixed

> Deprecate and remove NullArgumentException
> ------------------------------------------
>
>                 Key: SIS-562
>                 URL: https://issues.apache.org/jira/browse/SIS-562
>             Project: Spatial Information Systems
>          Issue Type: Task
>          Components: Utilities
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>            Priority: Minor
>             Fix For: 1.4, 1.5
>
>
> The {{org.apache.sis.util.NullArgumentException}} class was added in SIS 0.3 (in 2013) for providing more helpful error message when a mandatory argument was null. But since that time, Java has improved the messages that they provide with {{NullPointerException}}. Those automatically generated messages now provide the information.
> In addition, the {{Objects.requireNonNull(T, String)}} standard method has optimisations that we can not match (using JDK internal {{\@ForceInline}} annotation). So we may also deprecate {{ArgumentChecks.ensureNonNull(…)}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)