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

Commit b8eccd82 authored by Roozbeh Pournader's avatar Roozbeh Pournader Committed by android-build-merger
Browse files

Merge "Make InputFilter.AllCaps constructor reject null locales" into oc-mr1-dev am: 6e8e322e

am: 6359944a

Change-Id: Ib5064f4be5fd73c76ad99547746bb1cb6534c2bd
parents 14a7b333 6359944a
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -16,7 +16,9 @@

package android.text;

import android.annotation.Nullable;
import android.annotation.NonNull;

import com.android.internal.util.Preconditions;

import java.util.Locale;

@@ -64,7 +66,8 @@ public interface InputFilter
         * Constructs a locale-specific AllCaps filter, to make sure capitalization rules of that
         * locale are used for transforming the sequence.
         */
        public AllCaps(@Nullable Locale locale) {
        public AllCaps(@NonNull Locale locale) {
            Preconditions.checkNotNull(locale);
            mLocale = locale;
        }