[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Created] (LANG-1004) DurationFormatUtils#formatDurationHMS implementation does not correspon
From:       "Michael Osipov (JIRA)" <jira () apache ! org>
Date:       2014-04-30 21:13:15
Message-ID: JIRA.12711585.1398892303303.209763.1398892395062 () arcas
[Download RAW message or body]

Michael Osipov created LANG-1004:
------------------------------------

             Summary: DurationFormatUtils#formatDurationHMS implementation does not \
correspond to Javadoc and vice versa  Key: LANG-1004
                 URL: https://issues.apache.org/jira/browse/LANG-1004
             Project: Commons Lang
          Issue Type: Bug
          Components: lang.text.*
    Affects Versions: 3.3.2
            Reporter: Michael Osipov


This method has several flaws:

1. Javadoc says: "The format used is ISO8601-like: H:m:s.S." but the method call \
supplies "H:mm:ss.SSS" 2. ISO time never omits leading zeros, so the proper pattern \
must be "HH:mm:ss.SSS" 3. The method name says: "HMS" but omits the second fraction.

Since the use of fractions is optional, the method should use "HH:mm:ss" and update \
the Javadoc as well.



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic