32 lines
901 B
Java
32 lines
901 B
Java
package com.google.firebase.components;
|
|
|
|
import com.google.firebase.inject.Provider;
|
|
|
|
/* compiled from: com.google.firebase:firebase-common@@16.0.2 */
|
|
/* loaded from: classes.dex */
|
|
final class zzj<T> implements Provider<T> {
|
|
private static final Object c = new Object();
|
|
private volatile Object a = c;
|
|
private volatile Provider<T> b;
|
|
|
|
zzj(ComponentFactory<T> componentFactory, ComponentContainer componentContainer) {
|
|
this.b = zzk.a(componentFactory, componentContainer);
|
|
}
|
|
|
|
@Override // com.google.firebase.inject.Provider
|
|
public final T get() {
|
|
T t = (T) this.a;
|
|
if (t == c) {
|
|
synchronized (this) {
|
|
t = (T) this.a;
|
|
if (t == c) {
|
|
t = this.b.get();
|
|
this.a = t;
|
|
this.b = null;
|
|
}
|
|
}
|
|
}
|
|
return t;
|
|
}
|
|
}
|