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

[lang] DurationFormatUtils.formatDurationWords "11 <unit>s" gets converted to "11 <unit>"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: Other

    • Bugzilla Id:
      37596

      Description

      The method DurationFormatUtils.formatDurationWords incorrectly outputs numbers
      ending in "1" without a plural "s" postfix for the time unit.

      Added a fix and tests that "1 <unit>s" gets converted to "1 <unit>" but that "11
      <unit>s" is left alone.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              garydgregory Gary Gregory
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: