diff options
author | Aseem Kumar <aseemk@google.com> | 2022-03-21 20:35:20 -0700 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-10-19 16:38:56 +0000 |
commit | dce92ade72fb6cc5f3adeef9152d39619678ad16 (patch) | |
tree | 0b3cf7748becf5c5c089fbb03b988a25f7e0424e | |
parent | afce15ed864fc46737375dd2643400575980175f (diff) | |
download | base-dce92ade72fb6cc5f3adeef9152d39619678ad16.tar.gz |
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
(cherry picked from commit 945e78f9d63e6eb7e3e37d1f45c6bf94817a330c)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
-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; |