Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-711

Use Objects.requireNotNull for fail fast method/constructors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.8.0
    • None
    • None

    Description

      Currently some NullPointer checks are IllegalArgumentException, at other points a lot of constructor and/or method logic happens before a null pointer occurs.

      The approach is to make these places use Objects.requireNonNull(sampleObject,"sampleObject");

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            xf01213 Boris Unckel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h