
| Key: |
CLI-35
|
| Type: |
Bug
|
| Status: |
Closed
|
| Resolution: |
Fixed
|
| Priority: |
Minor
|
| Assignee: |
Unassigned
|
| Reporter: |
Robert Fletcher
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
| |
Size |
|
patch.txt |
2003-10-29 01:14 AM |
Robert Fletcher |
3 kB |
|
|
Environment:
|
Operating System: All
Platform: All
Operating System: All
Platform: All
|
|
|
HelpFormatter is using an inner class Comparator implementation to sort Option
objects, however it seems to be a bit confused about what types of object it is
sorting. The inner class is called StringBufferComparator, although it's
actually sorting Option objects. Further, it simply compares the object's
toString() values rather than using the getKey() method which would perform the
sort that the comments seem to indicate is desired. The sort that is actually
performed doesn't appear to modify the ordering of the list at all.
|
|
Description
|
HelpFormatter is using an inner class Comparator implementation to sort Option
objects, however it seems to be a bit confused about what types of object it is
sorting. The inner class is called StringBufferComparator, although it's
actually sorting Option objects. Further, it simply compares the object's
toString() values rather than using the getKey() method which would perform the
sort that the comments seem to indicate is desired. The sort that is actually
performed doesn't appear to modify the ordering of the list at all. |
Show » |
| No work has yet been logged on this issue.
|
|