Jose Luis Pedrosa created NIFI-8370:
---------------------------------------

             Summary: Deprecated FormatUtils.getTimeDuration is still used in 
code
                 Key: NIFI-8370
                 URL: https://issues.apache.org/jira/browse/NIFI-8370
             Project: Apache NiFi
          Issue Type: Improvement
    Affects Versions: 1.13.2
            Reporter: Jose Luis Pedrosa


There are plenty of invocations to 
org.apache.nifi.util.FormatUtils#getTimeDuration which is causing a lot of 
warnings during compilation. 

Current implementation of such method already depends on the new implementation 
by 
{code:java}
   @Deprecated
    public static long getTimeDuration(final String value, final TimeUnit 
desiredUnit) {
        return Math.round(getPreciseTimeDuration(value, desiredUnit));
    }
{code}

It is unclear to me if this package is meant to be used externally, so the 
actual implementation may be left for safety.



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

Reply via email to