You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@codehaus.org> on 2015/03/01 15:33:18 UTC

[jira] (MNG-5649) Stop abusing IllegalArgumentException in case of null

    [ https://jira.codehaus.org/browse/MNG-5649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=364313#comment-364313 ] 

Michael Osipov commented on MNG-5649:
-------------------------------------

Jason, several months have passed. Are still interested in Guava's Preconditions? Otherwise I'd go over to fix those issues.

> Stop abusing IllegalArgumentException in case of null
> -----------------------------------------------------
>
>                 Key: MNG-5649
>                 URL: https://jira.codehaus.org/browse/MNG-5649
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.2.1
>            Reporter: Michael Osipov
>
> In several spots of Maven Core, IAE is thrown where an argument is null. This should be turned into {{NullPointerException}} since JDK adheres to is and the [description|http://docs.oracle.com/javase/6/docs/api/java/lang/NullPointerException.html] of this exception indicates that and Effective Java does that too.
> I possible fix version could next minor: 3.3. Is no one is opposed it could even be 3.2.2.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)