20 lines
570 B
Java
20 lines
570 B
Java
|
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;
|
||
|
}
|
||
|
}
|