Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3bf60da authored by Orion Hodson's avatar Orion Hodson
Browse files

Prefer `Byte.valueOf()` to `new Byte()`

Avoid some unnecessary Byte allocations.

Bug: N/A
Test: Treehugger
Change-Id: I5f3a36358dbb20012bc42ffbf90bc1273dec1c6a
parent d1b3d3c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -576,7 +576,7 @@ public class RadioSimProxy extends RadioServiceProxy {
                halImsiInfo.base.expirationTime = imsiEncryptionInfo.getExpirationTime().getTime();
            }
            for (byte b : imsiEncryptionInfo.getPublicKey().getEncoded()) {
                halImsiInfo.base.carrierKey.add(new Byte(b));
                halImsiInfo.base.carrierKey.add(Byte.valueOf(b));
            }
            halImsiInfo.keyType = (byte) imsiEncryptionInfo.getKeyType();

@@ -592,7 +592,7 @@ public class RadioSimProxy extends RadioServiceProxy {
                halImsiInfo.expirationTime = imsiEncryptionInfo.getExpirationTime().getTime();
            }
            for (byte b : imsiEncryptionInfo.getPublicKey().getEncoded()) {
                halImsiInfo.carrierKey.add(new Byte(b));
                halImsiInfo.carrierKey.add(Byte.valueOf(b));
            }

            ((android.hardware.radio.V1_1.IRadio) mRadioProxy).setCarrierInfoForImsiEncryption(