Loading core/java/android/text/TextUtils.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.text; import android.annotation.Nullable; import android.content.res.Resources; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -457,7 +458,7 @@ public class TextUtils { * @param str the string to be examined * @return true if str is null or zero length */ public static boolean isEmpty(CharSequence str) { public static boolean isEmpty(@Nullable CharSequence str) { if (str == null || str.length() == 0) return true; else Loading Loading
core/java/android/text/TextUtils.java +2 −1 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.text; import android.annotation.Nullable; import android.content.res.Resources; import android.os.Parcel; import android.os.Parcelable; Loading Loading @@ -457,7 +458,7 @@ public class TextUtils { * @param str the string to be examined * @return true if str is null or zero length */ public static boolean isEmpty(CharSequence str) { public static boolean isEmpty(@Nullable CharSequence str) { if (str == null || str.length() == 0) return true; else Loading