From aad82f50325869eeb906273e554a242ea85f715f Mon Sep 17 00:00:00 2001 From: David Vacca Date: Sat, 30 Sep 2023 22:12:29 -0700 Subject: [PATCH] Reduce visibility of CanvasUtil (#39725) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39725 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. changelog: [Android][Changed] Reducing visibility of CanvasUtil Reviewed By: RSNara Differential Revision: D49752146 fbshipit-source-id: 26fbcd20b7a9db52043978ca86879c6f6cd7a8db --- .../main/java/com/facebook/react/views/view/CanvasUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java index c8440695c013dc..5aeddab59c221c 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/view/CanvasUtil.java @@ -19,7 +19,8 @@ * href="https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui-graphics/src/androidMain/kotlin/androidx/compose/ui/graphics/CanvasUtils.android.kt;drc=3b2dde134afab8d58b9c39ad4820eaf9a6e014a9"> * Compose canvas utils */ -public class CanvasUtil { +class CanvasUtil { + private CanvasUtil() {} private @Nullable static Method mReorderBarrierMethod = null;