Boris Unckel created IO-711: ------------------------------- Summary: Use Objects.requireNotNull for fail fast method/constructors Key: IO-711 URL: https://issues.apache.org/jira/browse/IO-711 Project: Commons IO Issue Type: Improvement Components: Filters, Streams/Writers, Utilities Affects Versions: 2.8.0 Reporter: Boris Unckel
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"); -- This message was sent by Atlassian Jira (v8.3.4#803005)