From 2c5d9760002d1a2d66e2afcbf3bd9f7f00e15bd2 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 5 Oct 2023 20:29:47 -0700 Subject: [PATCH] Reduce visibility of AggregateException 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. If you are using this class or interface please comment in this PR and we will restate the public access. bypass-github-export-checks changelog: [Android][Changed] Reducing visibility of AggregateException Reviewed By: arushikesarwani94 Differential Revision: D49803279 fbshipit-source-id: f3b6488789485ed87fd724f950eb0c2e34c38cc6 --- .../react/runtime/internal/bolts/AggregateException.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/AggregateException.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/AggregateException.java index 37bf364cbe0..fc90a3006c9 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/AggregateException.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/AggregateException.java @@ -21,7 +21,7 @@ import java.util.List; * * @see Task#whenAll(java.util.Collection) */ -public class AggregateException extends Exception { +class AggregateException extends Exception { private static final long serialVersionUID = 1L; private static final String DEFAULT_MESSAGE = "There were multiple errors.";