diff options
| author | 2021-01-28 21:04:20 +0000 | |
|---|---|---|
| committer | 2021-01-28 21:04:20 +0000 | |
| commit | 7556b81f8025ab3f67ae45ff8d4e06378b92d55f (patch) | |
| tree | 115e0a4f1a607f754e8a9ae7d3ccb519d23e9707 | |
| parent | bff8fecf851ca5716fd2cb2b6f386c8a2ec00b3c (diff) | |
| parent | f2193be3f046af4e72936ba7764571bf89090507 (diff) | |
Merge changes from topics "downloadable_init_change_1", "downloadable_init_change_2" am: f2193be3f0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1562763
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I0c3db4f27432f9bdc5433a23c1f60d951fb32836
| -rw-r--r-- | telephony/java/android/telephony/euicc/DownloadableSubscription.java | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/telephony/java/android/telephony/euicc/DownloadableSubscription.java b/telephony/java/android/telephony/euicc/DownloadableSubscription.java index 34120790b25a..a5150b010f57 100644 --- a/telephony/java/android/telephony/euicc/DownloadableSubscription.java +++ b/telephony/java/android/telephony/euicc/DownloadableSubscription.java @@ -121,25 +121,21 @@ public final class DownloadableSubscription implements Parcelable { } public Builder(@NonNull String encodedActivationCode) { - Preconditions.checkNotNull(encodedActivationCode, "Activation code may not be null"); this.encodedActivationCode = encodedActivationCode; } /** - * Builds a {@link DownloadableSubscription} object. If the encoded activation code is - * {@code null}, a {@link NullPointerException} will be thrown. + * Builds a {@link DownloadableSubscription} object. * @return a non-null {@link DownloadableSubscription} object. */ @NonNull public DownloadableSubscription build() { - Preconditions.checkNotNull(encodedActivationCode, "Activation code may not be null"); return new DownloadableSubscription(encodedActivationCode, confirmationCode, carrierName, accessRules); } /** - * Sets the encoded activation code. If the encoded activation code is {@code null}, a - * {@link NullPointerException} will be thrown. + * Sets the encoded activation code. * @param value the activation code to use. An activation code can be parsed from a user * scanned QR code. The format of activation code is defined in SGP.22. For * example, "1$SMDP.GSMA.COM$04386-AGYFT-A74Y8-3F815$1.3.6.1.4.1.31746". For @@ -147,7 +143,6 @@ public final class DownloadableSubscription implements Parcelable { */ @NonNull public Builder setEncodedActivationCode(@NonNull String value) { - Preconditions.checkNotNull(encodedActivationCode, "Activation code may not be null"); encodedActivationCode = value; return this; } |