Casting to byte[] actually creates an array of boxed Byte values, which prevents it from being used in some cases. If the user asks for Byte[] then that’s fine, but when asking for byte[] it needs to actually be an array of primitives. This goes the same for int, float, double, boolean, etc.
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
Casting to
byte[]
actually creates an array of boxedByte
values, which prevents it from being used in some cases. If the user asks forByte[]
then that’s fine, but when asking forbyte[]
it needs to actually be an array of primitives. This goes the same forint
,float
,double
,boolean
, etc.