[ 
https://issues.apache.org/jira/browse/MNG-8483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17910271#comment-17910271
 ] 

Elliotte Rusty Harold commented on MNG-8483:
--------------------------------------------

We can still do 

.requireNonNull(field, "field cannot be null")

or

.requireNonNull(field)

if we prefer. I strongly feel we should leave basic utility methods to the JDK 
where possible. It's more reliable and easier for everyone to read since it 
avoids learning the idiosyncracies of  one part of one project.

> BaseRequest.nonNull should be removed
> -------------------------------------
>
>                 Key: MNG-8483
>                 URL: https://issues.apache.org/jira/browse/MNG-8483
>             Project: Maven
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 4.0.0-rc-2
>            Reporter: Elliotte Rusty Harold
>            Assignee: Elliotte Rusty Harold
>            Priority: Blocker
>             Fix For: 4.0.0-rc-3
>
>
> Aside from throwing the wrong exception type, this just reinvents 
> Objects.requireNonNull that we've had since Java 8.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to