Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2007

Use Objects.requireNonNull(Obj, Supplier<String>) to avoid masking errors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M2
    • None
    • None

    Description

      If use Objects.requireNonNull(Object, String), then this will evaluate String eagerly. That might itself cause an exception, hiding if the object is null.

      Attachments

        Activity

          People

            danhaywood Daniel Keir Haywood
            danhaywood Daniel Keir Haywood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: