Skip to content

Commit 64c2a52

Browse files
cortinicofacebook-github-bot
authored andcommitted
Remove unnecessary public keyword (#49062)
Summary: Pull Request resolved: #49062 Another round of cleanup for the `public` keyword that I found around. Those are unnecessary here as those classes are `internal` and we should remove them. Changelog: [Internal] [Changed] - Reviewed By: mdvacca Differential Revision: D68894182 fbshipit-source-id: 6f7bac6051e17785a1bfb0d544950250429c71cb
1 parent 9afa359 commit 64c2a52

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportSoLoader.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ internal object DevSupportSoLoader {
1414

1515
@JvmStatic
1616
@Synchronized
17-
public fun staticInit() {
17+
fun staticInit() {
1818
if (didInit) {
1919
return
2020
}

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/internal/bolts/Executors.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import java.util.concurrent.Executor
2424
* threads.
2525
*/
2626
internal object Executors {
27-
@JvmField public val UI_THREAD: Executor = UIThreadExecutor()
28-
@JvmField public val IMMEDIATE: Executor = ImmediateExecutor()
27+
@JvmField val UI_THREAD: Executor = UIThreadExecutor()
28+
@JvmField val IMMEDIATE: Executor = ImmediateExecutor()
2929

3030
private class UIThreadExecutor : Executor {
3131
override fun execute(command: Runnable) {

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/uimanager/BlendModeHelper.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ internal object BlendModeHelper {
1919

2020
/** @see https://www.w3.org/TR/compositing-1/#mix-blend-mode */
2121
@JvmStatic
22-
public fun parseMixBlendMode(mixBlendMode: String?): BlendMode? {
22+
fun parseMixBlendMode(mixBlendMode: String?): BlendMode? {
2323
if (mixBlendMode == null || Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
2424
return null
2525
}
@@ -46,6 +46,6 @@ internal object BlendModeHelper {
4646
}
4747

4848
@JvmStatic
49-
public fun needsIsolatedLayer(view: ViewGroup): Boolean =
49+
fun needsIsolatedLayer(view: ViewGroup): Boolean =
5050
view.children.any { it.getTag(R.id.mix_blend_mode) != null }
5151
}

0 commit comments

Comments
 (0)