You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/10/20 18:50:59 UTC
[jira] [Resolved] (LANG-1070) ArrayUtils#add confusing example in
javadoc
[ https://issues.apache.org/jira/browse/LANG-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher resolved LANG-1070.
-------------------------------------
Resolution: Fixed
Assignee: Pascal Schumacher
Fix Version/s: 3.6
I have fixed the javadoc examples. Wether the behavior is correct is a different issue in my option.
> ArrayUtils#add confusing example in javadoc
> -------------------------------------------
>
> Key: LANG-1070
> URL: https://issues.apache.org/jira/browse/LANG-1070
> Project: Commons Lang
> Issue Type: Improvement
> Components: lang.*
> Affects Versions: 3.3.2
> Reporter: Paul Pogonyshev
> Assignee: Pascal Schumacher
> Priority: Trivial
> Fix For: 3.6
>
>
> Method documentation claims that
> ArrayUtils.add(null, null) = null
> However, this is not true since this parameter combination leads to an exception.
> Either remove this line from documentation, or rewrite it to explicitly mention the exception. Maybe there are other related methods with similar problem in the docs.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)