Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4693

GDK groovydocs for String.padXXX are not very clear [new wording attached]

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.7
    • 1.8-rc-2, 1.7.9, 1.9-beta-1
    • groovy-jdk
    • None
    • Patch

    Description

      I was trying to work out what padLeft etc did from the docs, its not very clear:

      "Pad a String with the characters appended to the left"

      The argument "numberOfCharacters" does not give you the clue that this is the target width.

      I would suggest therefore a change in working in this and related methods:

      "Pad a String to a minimum length specified by numberOfCharacters, with padding characters added to the left."

      Attachments

        Activity

          People

            paulk Paul King
            marc@anyware.co.uk Marc Palmer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: