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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.11
    • 3.12.0
    • lang.*
    • 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

            kinow Bruno P. Kinoshita
            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