commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-1259) JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading
Date Fri, 19 Aug 2016 07:51:21 GMT

     [ https://issues.apache.org/jira/browse/LANG-1259?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter resolved LANG-1259.
-----------------------------------
    Resolution: Fixed

{code}
$ git ci -m "LANG-1259: JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading. Thanks
to Dominik Stadler."
[master 4a26a86] LANG-1259: JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading. Thanks
to Dominik Stadler.
 2 files changed, 19 insertions(+), 18 deletions(-)
{code}

Thank you!

> JavaDoc for ArrayUtils.isNotEmpty() is slightly misleading
> ----------------------------------------------------------
>
>                 Key: LANG-1259
>                 URL: https://issues.apache.org/jira/browse/LANG-1259
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Dominik Stadler
>            Assignee: Benedikt Ritter
>            Priority: Minor
>              Labels: PatchAvailable
>             Fix For: 3.5
>
>         Attachments: 0001-LANG-1259-Adjust-JavaDoc.patch, ArrayUtils.isNotEmpty.patch
>
>
> JavaDoc states {{if the array is not empty or not null}}, however actually it is {{if
the array is not empty and not null}}, i.e. "and" instead of "or". Looks like a small copy/paste
error from "isEmpty()"
> Attached patch fixes all the instances.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message