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

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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          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:

              Slack

                Issue deployment