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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2
    • None
    • None
    • Operating System: Windows XP
      Platform: Other

    • 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

            Unassigned Unassigned
            ggregory Gary D. Gregory
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: