Fix ArrayStoreException (#15320)
Fixes #15313 Partially reverts #13967 Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
parent
5732cca7bb
commit
9aab0f7d12
|
@ -47,7 +47,9 @@ public class BluetoothUtils {
|
|||
*/
|
||||
public static int[] toIntArray(byte[] value) {
|
||||
int[] ret = new int[value.length];
|
||||
System.arraycopy(value, 0, ret, 0, value.length);
|
||||
for (int i = 0; i < value.length; i++) {
|
||||
ret[i] = value[i];
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue