jira-importer opened a new issue, #1128:
URL: https://github.com/apache/httpcomponents-core/issues/1128

   **[Michael 
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)**
 opened 
**[HTTPCORE-611](https://issues.apache.org/jira/browse/HTTPCORE-611?redirect=false)**
 and commented
   
   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 is 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](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ggregory)
   
   
   ---
   
   **Affects:** 5.0-beta9
   
   **Remote Links:**
   - [GitHub Pull Request `#155`
   ](https://github.com/apache/httpcomponents-core/pull/155)
   - [GitHub Pull Request `#156`
   ](https://github.com/apache/httpcomponents-core/pull/156)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to