From 9d3fa2715d6966842a17af66e5b15dbaba9bbe8f Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 5 Oct 2023 20:29:47 -0700 Subject: [PATCH] Reduce visibility of ExecutorException Summary: In an attempt to reduce footprint of React Native Android public APIs we are reducing visibility of classes and interfaces that are not meant to be used publicly OR are public but have no usages. As part of our analysis, which involved looking for usages inside the Meta codebase and code search in OSS, we've detected that this class/interface is public but it's not used from other packages. bypass-github-export-checks If you are using this class or interface please comment in this PR and we will restate the public access. changelog: [Android][Changed] Reducing visibility of ExecutorException Reviewed By: cortinico Differential Revision: D49803280 fbshipit-source-id: 140b5bcd41b1a16ed84196021305a4d27f8cc24a --- .../react/runtime/internal/bolts/ExecutorException.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/ExecutorException.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/ExecutorException.java index 35915b9deed..57c0a4e817d 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/ExecutorException.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/ExecutorException.java @@ -13,7 +13,7 @@ import androidx.annotation.Nullable; * This is a wrapper class for emphasizing that task failed due to bad {@code Executor}, rather than * the continuation block it self. */ -public class ExecutorException extends RuntimeException { +class ExecutorException extends RuntimeException { public ExecutorException(@Nullable Exception e) { super("An exception was thrown by an Executor", e);