what-the-bank/sources/com/google/gson/internal/reflect/ReflectionAccessor.java

20 lines
570 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.gson.internal.reflect;
import com.google.gson.internal.JavaVersion;
import java.lang.reflect.AccessibleObject;
/* loaded from: classes.dex */
public abstract class ReflectionAccessor {
private static final ReflectionAccessor instance;
public abstract void makeAccessible(AccessibleObject accessibleObject);
static {
instance = JavaVersion.getMajorJavaVersion() < 9 ? new PreJava9ReflectionAccessor() : new UnsafeReflectionAccessor();
}
public static ReflectionAccessor getInstance() {
return instance;
}
}