Martin Desruisseaux created SIS-562:
---------------------------------------

             Summary: 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
             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)

Reply via email to