diff options
| author | Aseem Kumar <aseemk@google.com> | 2022-08-05 23:56:42 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2022-08-05 23:56:42 +0000 |
| commit | fb5f9cb95c72a80e29a6763f90564c1a549fb649 (patch) | |
| tree | bcffcd471578acb548ba657c6a5e97c1163d9d03 /core/java | |
| parent | 83ef3b9773435268f5e02b71bf52574f19edd93d (diff) | |
| parent | 5c3d1dceb0226cc3fd802c40dd45723153c5de7a (diff) | |
Merge "DO NOT MERGE Move accountname and typeName length check from Account.java to AccountManagerService." into rvc-qpr-dev
Diffstat (limited to 'core/java')
| -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 965b6e0a02cd..9a18880a353b 100644 --- a/core/java/android/accounts/Account.java +++ b/core/java/android/accounts/Account.java @@ -30,7 +30,6 @@ import android.util.Log; import com.android.internal.annotations.GuardedBy; -import java.util.Objects; import java.util.Set; /** @@ -86,12 +85,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; |
