You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2022/02/06 22:01:00 UTC
[jira] [Closed] (IO-711) Use Objects.requireNotNull for fail fast method/constructors
[ https://issues.apache.org/jira/browse/IO-711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary D. Gregory closed IO-711.
------------------------------
Resolution: Won't Fix
Closing, PR was closed.
> 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
> Priority: Major
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> 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.20.1#820001)