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

Mark Payne resolved NIFI-3928.
------------------------------
    Resolution: Duplicate

> Improve handling of DataTypeUtils.isNumberTypeCompatible
> --------------------------------------------------------
>
>                 Key: NIFI-3928
>                 URL: https://issues.apache.org/jira/browse/NIFI-3928
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Extensions
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>
> The DataTypeUtils class has a method named isNumberTypeCompatible that takes 
> as an argument a Consumer<String>. We should instead make this a 
> Predicate<String> and make the logic that is passed to this method more 
> efficient in determining whether or not a value matches. For instance, to 
> determine if a value is an Integer, it's calling Integer.parseInt() instead 
> of matching against a regular expression or iterating over the characters and 
> testing via String.charAt(int) and Character.isDigit(char).



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to