hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Busbey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7919) Time.NANOSECONDS_PER_MILLISECOND - use class level final constant instead of method variable
Date Thu, 12 Mar 2015 15:55:38 GMT

     [ https://issues.apache.org/jira/browse/HDFS-7919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean Busbey updated HDFS-7919:
------------------------------
    Labels: beginner  (was: )

> Time.NANOSECONDS_PER_MILLISECOND - use class level final constant instead of method variable

> ---------------------------------------------------------------------------------------------
>
>                 Key: HDFS-7919
>                 URL: https://issues.apache.org/jira/browse/HDFS-7919
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Ajith S
>            Assignee: Ajith S
>            Priority: Trivial
>              Labels: beginner
>
> NANOSECONDS_PER_MILLISECOND constant can be moved to class level instead of creating
it in each method call.
> {code}
> org.apache.hadoop.util.Time.java
>  public static long monotonicNow() {
>     final long NANOSECONDS_PER_MILLISECOND = 1000000;
>     return System.nanoTime() / NANOSECONDS_PER_MILLISECOND;
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message