what-the-bank/sources/com/google/android/gms/common/util/Strings.java

26 lines
667 B
Java

package com.google.android.gms.common.util;
import android.text.TextUtils;
import java.util.regex.Pattern;
import org.checkerframework.checker.nullness.qual.EnsuresNonNullIf;
/* loaded from: classes.dex */
public class Strings {
private static final Pattern zza = Pattern.compile("\\$\\{(.*?)\\}");
public static String emptyToNull(String str) {
if (TextUtils.isEmpty(str)) {
return null;
}
return str;
}
@EnsuresNonNullIf(expression = {"#1"}, result = false)
public static boolean isEmptyOrWhitespace(String str) {
return str == null || str.trim().isEmpty();
}
private Strings() {
}
}