package com.google.android.gms.common.internal;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.gms.common.annotation.KeepForSdk;

/* JADX INFO: loaded from: classes2.dex */
public final class n {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f8387a;

    @Nullable
    private final String zzb;

    @KeepForSdk
    public n(@NonNull String str, @Nullable String str2) {
        if (str == null) {
            throw new NullPointerException("log tag cannot be null");
        }
        Object[] objArr = {str, 23};
        if (!(str.length() <= 23)) {
            throw new IllegalArgumentException(String.format("tag \"%s\" is longer than the %d character maximum", objArr));
        }
        this.f8387a = str;
        this.zzb = (str2 == null || str2.length() <= 0) ? null : str2;
    }

    public final void a(String str) {
        String str2 = this.zzb;
        if (str2 == null) {
            return;
        }
        str2.concat(str);
    }
}
