Make ReactCxxErrorHandler internal (#53024)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/53024

This class is Legacy Arch and is not used in OSS. Let's make it internal.

Changelog:
[Internal] [Changed] -

Reviewed By: RSNara

Differential Revision: D79556615

fbshipit-source-id: d157fe8f04784038d64657c6d240b0c51e41d82d
This commit is contained in:
Nicola Corti
2025-08-04 07:51:30 -07:00
committed by Facebook GitHub Bot
parent dd7ab0f833
commit ea1aff455a
2 changed files with 2 additions and 7 deletions
@@ -1140,11 +1140,6 @@ public abstract class com/facebook/react/bridge/ReactContextBaseJavaModule : com
protected final fun getCurrentActivity ()Landroid/app/Activity;
}
public final class com/facebook/react/bridge/ReactCxxErrorHandler {
public static final field INSTANCE Lcom/facebook/react/bridge/ReactCxxErrorHandler;
public static final fun setHandleErrorFunc (Ljava/lang/Object;Ljava/lang/reflect/Method;)V
}
public final class com/facebook/react/bridge/ReactMarker {
public static final field INSTANCE Lcom/facebook/react/bridge/ReactMarker;
public static final fun addFabricListener (Lcom/facebook/react/bridge/ReactMarker$FabricMarkerListener;)V
@@ -16,7 +16,7 @@ import java.lang.reflect.Method
@DoNotStrip
@LegacyArchitecture
public object ReactCxxErrorHandler {
internal object ReactCxxErrorHandler {
init {
LegacyArchitectureLogger.assertLegacyArchitecture(
"ReactCxxErrorHandler", LegacyArchitectureLogLevel.WARNING)
@@ -27,7 +27,7 @@ public object ReactCxxErrorHandler {
@DoNotStrip
@JvmStatic
public fun setHandleErrorFunc(handlerObject: Any?, handleErrorFunc: Method?) {
fun setHandleErrorFunc(handlerObject: Any?, handleErrorFunc: Method?) {
this.handlerObject = handlerObject
this.handleErrorFunc = handleErrorFunc
}