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

Commit c29f171a authored by Aseem Kumar's avatar Aseem Kumar Committed by Justin Dunlap
Browse files

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 0adcadb0)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
(cherry picked from commit aa58f990)
Merged-In: I80fabf3a64c55837db98ff316e7e5420129c001b
parent 1bf25d73
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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;