Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-562

Deprecate and remove NullArgumentException

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.4, 1.5
    • Utilities
    • None

    Description

      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(…).

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: