Files
rr3-apk/decompiled-community/sources/com/google/protobuf/ExtensionRegistryFactory.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- Added realracing3-community.apk (71.57 MB)
- Removed 32-bit support (armeabi-v7a)
- Only includes arm64-v8a libraries
- Decompiled source code included
- Added README-community.md with analysis
2026-02-18 15:48:36 -08:00

43 lines
1.6 KiB
Java

package com.google.protobuf;
/* loaded from: classes3.dex */
public final class ExtensionRegistryFactory {
static final Class<?> EXTENSION_REGISTRY_CLASS = reflectExtensionRegistry();
static final String FULL_REGISTRY_CLASS_NAME = "com.google.protobuf.ExtensionRegistry";
public static Class<?> reflectExtensionRegistry() {
try {
return Class.forName(FULL_REGISTRY_CLASS_NAME);
} catch (ClassNotFoundException unused) {
return null;
}
}
public static ExtensionRegistryLite create() {
ExtensionRegistryLite invokeSubclassFactory = invokeSubclassFactory("newInstance");
return invokeSubclassFactory != null ? invokeSubclassFactory : new ExtensionRegistryLite();
}
public static ExtensionRegistryLite createEmpty() {
ExtensionRegistryLite invokeSubclassFactory = invokeSubclassFactory("getEmptyRegistry");
return invokeSubclassFactory != null ? invokeSubclassFactory : ExtensionRegistryLite.EMPTY_REGISTRY_LITE;
}
public static boolean isFullRegistry(ExtensionRegistryLite extensionRegistryLite) {
Class<?> cls = EXTENSION_REGISTRY_CLASS;
return cls != null && cls.isAssignableFrom(extensionRegistryLite.getClass());
}
private static final ExtensionRegistryLite invokeSubclassFactory(String str) {
Class<?> cls = EXTENSION_REGISTRY_CLASS;
if (cls == null) {
return null;
}
try {
return (ExtensionRegistryLite) cls.getDeclaredMethod(str, new Class[0]).invoke(null, new Object[0]);
} catch (Exception unused) {
return null;
}
}
}