Merge "[Mainline] Migrate TextUtils#emptyIfNull"

This commit is contained in:
Treehugger Robot 2021-01-28 06:05:08 +00:00 • committed by Gerrit Code Review
commit a4520fd260

View file

@ -686,7 +686,7 @@ public class NetworkDiagnostics {
mHostname = hostname;
mMeasurement.description = "DNS TLS dst{" + mTarget.getHostAddress() + "} hostname{"
+ TextUtils.emptyIfNull(mHostname) + "}";
+ (mHostname == null ? "" : mHostname) + "}";
}
private SSLSocket setupSSLSocket() throws IOException {