You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2020/08/14 12:55:00 UTC

[jira] [Commented] (LANG-1598) Use JSR-305 (javax.annotation) for Null-Analysis to avoid unexpected NullPointerExceptions

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

Michael Osipov commented on LANG-1598:
--------------------------------------

NPEs should be anyway avoided by rejecting null values with the {{Validate}} class.

> Use JSR-305 (javax.annotation) for Null-Analysis to avoid unexpected NullPointerExceptions
> ------------------------------------------------------------------------------------------
>
>                 Key: LANG-1598
>                 URL: https://issues.apache.org/jira/browse/LANG-1598
>             Project: Commons Lang
>          Issue Type: Improvement
>          Components: lang.*
>    Affects Versions: 3.11
>            Reporter: Alexander Guril
>            Priority: Major
>              Labels: newbie
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Use the javax.annotation-API for Null-Analysis to avoid NPEs.
> {code:XML}
> <!-- https://mvnrepository.com/artifact/com.google.code.findbugs/jsr305 -->
> <dependency>
>     <groupId>com.google.code.findbugs</groupId>
>     <artifactId>jsr305</artifactId>
>     <version>3.0.2</version>
> </dependency>
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)