Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-2007

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

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-M1
    • Fix Version/s: 2.0.0-M2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: