Initial commit
This commit is contained in:
29
sources/com/google/android/gms/common/zzg.java
Normal file
29
sources/com/google/android/gms/common/zzg.java
Normal file
@@ -0,0 +1,29 @@
|
||||
package com.google.android.gms.common;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
abstract class zzg extends zze {
|
||||
private static final WeakReference<byte[]> c = new WeakReference<>(null);
|
||||
private WeakReference<byte[]> b;
|
||||
|
||||
zzg(byte[] bArr) {
|
||||
super(bArr);
|
||||
this.b = c;
|
||||
}
|
||||
|
||||
@Override // com.google.android.gms.common.zze
|
||||
final byte[] i() {
|
||||
byte[] bArr;
|
||||
synchronized (this) {
|
||||
bArr = this.b.get();
|
||||
if (bArr == null) {
|
||||
bArr = j();
|
||||
this.b = new WeakReference<>(bArr);
|
||||
}
|
||||
}
|
||||
return bArr;
|
||||
}
|
||||
|
||||
protected abstract byte[] j();
|
||||
}
|
||||
Reference in New Issue
Block a user