diff options
| author | Aseem Kumar <aseemk@google.com> | 2022-03-21 20:35:20 -0700 |
|---|---|---|
| committer | Aseem Kumar <aseemk@google.com> | 2022-08-04 22:28:26 +0000 |
| commit | e9ec3227205cbb5d637c6dba3fb04ef7ba7a9b69 (patch) | |
| tree | 0d9390823470beb047f251935ac0559546831133 /core/java/android | |
| parent | dc8ae7665ae175439b45b92d01862d7a68ce733e (diff) | |
DO NOT MERGE
Move accountname and typeName length check from Account.java to AccountManagerService.
Bug: 169762606
Test: atest AccountManagerServiceTest
Change-Id: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit 0adcadb0b28310bac568def4da2cbaf16843bcea)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/accounts/Account.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/core/java/android/accounts/Account.java b/core/java/android/accounts/Account.java index e6cdcc0ee742..0d6a07938e95 100644 --- a/core/java/android/accounts/Account.java +++ b/core/java/android/accounts/Account.java @@ -31,7 +31,6 @@ import android.util.Log; import com.android.internal.annotations.GuardedBy; -import java.util.Objects; import java.util.Set; /** @@ -87,12 +86,6 @@ public class Account implements Parcelable { if (TextUtils.isEmpty(type)) { throw new IllegalArgumentException("the type must not be empty: " + type); } - if (name.length() > 200) { - throw new IllegalArgumentException("account name is longer than 200 characters"); - } - if (type.length() > 200) { - throw new IllegalArgumentException("account type is longer than 200 characters"); - } this.name = name; this.type = type; this.accessId = accessId; |
