[ 
https://issues.apache.org/jira/browse/HTTPCORE-611?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16962100#comment-16962100
 ] 

Michael Osipov commented on HTTPCORE-611:
-----------------------------------------

Up to 5 digits the value might be misinterpreted if the reader is non-native 
English speaker. You should either drop it or use a proper grouping separator: 
{{space}}.  See 
[here|https://www.bipm.org/utils/common/pdf/si-brochure/SI-Brochure-9-EN.pdf], 
chapter 5.4.4.

> Minor glitches with TimeValue
> -----------------------------
>
>                 Key: HTTPCORE-611
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-611
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: HttpCore
>    Affects Versions: 5.0-beta9
>            Reporter: Michael Osipov
>            Priority: Major
>
> The {{TimeValue}} looks like a very good thing. Some nits can be improved:
> * {{NEG_ONE_*SECONDS}} uses plural for the scale of one, but should use 
> singular
> * {{defaultsToZeroMillis}} is not consistent with 
> {{defaultsToNegativeOneSecond}}. It should be {{{defaultsToZeroMilliseconds}}
> * {{parse()}} uses {{String.format()}} but never passes value to the format. 
> {{%s}} is missing.
> * {{parse()}} should parse with {{Long.parseLong()}} instead of a biased 
> locale. 1,200 SECONDS for me a one second and 200 milliseconds. Thus, it 
> should be language agnostic.
> * {{toString()}} should also do at most {{%d}} or {{%s}}.
> * {{toMillis()}} and other second fractions use inconsistent naming. I'd 
> expect it to be {{toMilliseconds()}} and so forth.
> [~ggregory]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to