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

Daniel Stieglitz updated NIFI-16142:
------------------------------------
    Description: In a handful of places a long is read from a byte array using 
bit-wise operators which is hard to read. In addition there are some 
unnecessary casts when using this method although  all casts were kept in PR 
#[11440|[https://github.com/apache/nifi/pull/11440]] that was only for 
consistency so one wouldn't have to wonder why some lines of casts and others 
do not.  Since Java 9, there is an alternative using   (was: In a handful of 
places a long is read from a byte array using bitwise operators which is hard 
to read and in all cases has some necessary casts and other unnecessary casts. 
All casts were kept in PR #)

> Replace the use of bitwise operators to read a long from a byte array with 
> java.lang.invoke.VarHandle
> -----------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-16142
>                 URL: https://issues.apache.org/jira/browse/NIFI-16142
>             Project: Apache NiFi
>          Issue Type: Improvement
>            Reporter: Daniel Stieglitz
>            Assignee: Daniel Stieglitz
>            Priority: Minor
>
> In a handful of places a long is read from a byte array using bit-wise 
> operators which is hard to read. In addition there are some unnecessary casts 
> when using this method although  all casts were kept in PR 
> #[11440|[https://github.com/apache/nifi/pull/11440]] that was only for 
> consistency so one wouldn't have to wonder why some lines of casts and others 
> do not.  Since Java 9, there is an alternative using 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to