From 22a3aeafcf80e5d29de49811cd6c93d04157d01d Mon Sep 17 00:00:00 2001 From: David Vacca Date: Thu, 5 Oct 2023 20:29:47 -0700 Subject: [PATCH] Reduce visibility of CancellationTokenRegistration 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 CancellationTokenRegistration Reviewed By: arushikesarwani94 Differential Revision: D49803300 fbshipit-source-id: c7992bdaa0994c1035894a15af1e9d0bf7ebd204 --- .../runtime/internal/bolts/CancellationTokenRegistration.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/CancellationTokenRegistration.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationTokenRegistration.java index 3acde667848..be723f5e49e 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationTokenRegistration.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/CancellationTokenRegistration.java @@ -16,7 +16,7 @@ import java.io.Closeable; * * @see CancellationToken#register(Runnable) */ -public class CancellationTokenRegistration implements Closeable { +class CancellationTokenRegistration implements Closeable { private final Object lock = new Object(); private @Nullable CancellationTokenSource tokenSource;