package com.google.gson;

import com.bytedance.covode.number.Covode;
import com.google.gson.c.a;
import com.google.gson.c.b;
import com.google.gson.c.c;

public class TypeAdapter$1 extends u<T> {
    public final /* synthetic */ u LIZ;

    static {
        Covode.recordClassIndex(45367);
    }

    public TypeAdapter$1(u uVar) {
        this.LIZ = uVar;
    }

    public T read(a aVar) {
        if (aVar.LJFF() != b.NULL) {
            return this.LIZ.read(aVar);
        }
        aVar.LJIIJ();
        return null;
    }

    public void write(c cVar, T t) {
        if (t == null) {
            cVar.LJFF();
        } else {
            this.LIZ.write(cVar, t);
        }
    }
}
