Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.7
-
Fix Version/s: 1.8-rc-2, 1.7.9, 1.9-beta-1
-
Component/s: groovy-jdk
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
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."
Activity
Paul King
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | Paul King [ paulk ] |
Paul King
made changes -
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 1.8-rc-2 [ 17176 ] | |
| Fix Version/s | 1.7.9 [ 17164 ] | |
| Fix Version/s | 1.9-beta-1 [ 17153 ] | |
| Resolution | Fixed [ 1 ] |
Paul King
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
updated for padLeft, padRight and center