Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1628

Javadoc for RandomStringUtils.random() letters, numbers parameters is wrong

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.11
    • Fix Version/s: 3.12.0
    • Component/s: lang.*
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              kinow Bruno P. Kinoshita
              Reporter:
              jarkkor Jarkko Rantavuori
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 50m
                50m