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

[jira] [Resolved] (LANG-1628) Javadoc for RandomStringUtils.random() letters, numbers parameters is wrong

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

Bruno P. Kinoshita resolved LANG-1628.
--------------------------------------
    Resolution: Fixed

> Javadoc for RandomStringUtils.random() letters, numbers parameters is wrong
> ---------------------------------------------------------------------------
>
>                 Key: LANG-1628
>                 URL: https://issues.apache.org/jira/browse/LANG-1628
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 3.11
>            Reporter: Jarkko Rantavuori
>            Assignee: Bruno P. Kinoshita
>            Priority: Minor
>             Fix For: 3.12
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> For two of the random() methods, these:
> public static String random(int count, int start, int end, boolean letters, boolean numbers, char... chars)
> public static String random(int count, int start, int end, boolean letters, boolean numbers, char[] chars, Random random)
> the javadoc for letters, numbers parameters is
> {{letters}} - only allow letters?
> {{numbers}} - only allow numbers?
> when it should be like in other random() methods:
> {{letters}} - if {{true}}, generated string may include alphabetic characters
> {{numbers}} - if {{true}}, generated string may include numeric characters



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