From 5b16cdff9d9d54bf8ee328815afb2db17d9eb009 Mon Sep 17 00:00:00 2001 From: SJLIM Date: Fri, 29 May 2026 12:47:25 -0700 Subject: [PATCH] Generated from a GitHub Pull Request. Run 'jf sync' on this diff to load the correct commit data. (#56985) Summary: Remove duplicated words from comments in a release script, a dev middleware test helper, the Gradle plugin JDK utility, and the virtual view render state. ## Changelog: [INTERNAL] [FIXED] - Fix duplicated words in source comments. Pull Request resolved: https://github.com/facebook/react-native/pull/56985 Test Plan: Comments. Reviewed By: cortinico Differential Revision: D106615714 Pulled By: fabriziocucci fbshipit-source-id: cbb08abc5c0e6fbcfe2299c00aa05e67901b9f4c --- .../dev-middleware/src/__tests__/InspectorProtocolUtils.js | 2 +- .../kotlin/com/facebook/react/utils/JdkConfiguratorUtils.kt | 6 +++--- .../facebook/react/views/virtual/VirtualViewRenderState.kt | 2 +- scripts/releases/upload-release-assets-for-dotslash.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/dev-middleware/src/__tests__/InspectorProtocolUtils.js b/packages/dev-middleware/src/__tests__/InspectorProtocolUtils.js index 840bf2a1353..0eedf4287d3 100644 --- a/packages/dev-middleware/src/__tests__/InspectorProtocolUtils.js +++ b/packages/dev-middleware/src/__tests__/InspectorProtocolUtils.js @@ -39,7 +39,7 @@ export type CdpMessageToTarget = Readonly<{ }>; /** - * Send a CDP message from from the target with the given pageId to the debugger. + * Send a CDP message from the target with the given pageId to the debugger. * Returns the message as received by the debugger. */ export async function sendFromTargetToDebugger< diff --git a/packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/JdkConfiguratorUtils.kt b/packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/JdkConfiguratorUtils.kt index 151b53eaf6f..2a652dbcde7 100644 --- a/packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/JdkConfiguratorUtils.kt +++ b/packages/gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/JdkConfiguratorUtils.kt @@ -18,9 +18,9 @@ import org.jetbrains.kotlin.gradle.dsl.kotlinExtension internal object JdkConfiguratorUtils { /** - * Function that takes care of configuring the JDK toolchain for all the projects projects. As we - * do decide the JDK version based on the AGP version that RNGP brings over, here we can safely - * configure the toolchain to 17. + * Function that takes care of configuring the JDK toolchain for all the projects. As we do decide + * the JDK version based on the AGP version that RNGP brings over, here we can safely configure + * the toolchain to 17. */ fun configureJavaToolChains(input: Project) { // Check at the app level if react.internal.disableJavaVersionAlignment is set. diff --git a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/VirtualViewRenderState.kt b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/VirtualViewRenderState.kt index 0b3804a27af..3d92c299413 100644 --- a/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/VirtualViewRenderState.kt +++ b/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/views/virtual/VirtualViewRenderState.kt @@ -8,7 +8,7 @@ package com.facebook.react.views.virtual /** - * Represents the the render state of children in the most recent commit. + * Represents the render state of children in the most recent commit. * * This enables `ReactVirtualView` to know whether a previously emitted `VirtualViewModeChangeEvent` * has been committed, in order to only emit subsequent events that would change it. diff --git a/scripts/releases/upload-release-assets-for-dotslash.js b/scripts/releases/upload-release-assets-for-dotslash.js index 270d265909b..d8e3441e6a9 100644 --- a/scripts/releases/upload-release-assets-for-dotslash.js +++ b/scripts/releases/upload-release-assets-for-dotslash.js @@ -180,7 +180,7 @@ async function uploadReleaseAssetsForDotSlashFile( * Given a description of a DotSlash artifact for a particular platform, * infers the upstream URL ( = where the binary is currently available) and * release asset URL ( = where the binary will be hosted after the release), - * then downloads the asset from the the upstream URL and uploads it to GitHub + * then downloads the asset from the upstream URL and uploads it to GitHub * at the desired URL. */ async function fetchUpstreamAssetAndUploadToRelease(