hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9252) StringUtils.limitDecimalTo2(..) is unnecessarily synchronized
Date Sat, 26 Jan 2013 01:37:12 GMT
Tsz Wo (Nicholas), SZE created HADOOP-9252:
----------------------------------------------

             Summary: StringUtils.limitDecimalTo2(..) is unnecessarily synchronized
                 Key: HADOOP-9252
                 URL: https://issues.apache.org/jira/browse/HADOOP-9252
             Project: Hadoop Common
          Issue Type: Improvement
          Components: util
            Reporter: Tsz Wo (Nicholas), SZE
            Assignee: Tsz Wo (Nicholas), SZE
            Priority: Minor


limitDecimalTo2(double) currently uses decimalFormat, which is a static field, so that it
is synchronized.  Synchronization is unnecessary since it can simply uses String.format(..).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message