Convert YogaConfigJNIFinalizer and YogaNodeJNIFinalizer to Kotlin#1915
Closed
andrewdacenko wants to merge 1 commit into
Closed
Convert YogaConfigJNIFinalizer and YogaNodeJNIFinalizer to Kotlin#1915andrewdacenko wants to merge 1 commit into
andrewdacenko wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@andrewdacenko has exported this pull request. If you are a Meta employee, you can view the originating Diff in D95872345. |
andrewdacenko
added a commit
to andrewdacenko/react-native
that referenced
this pull request
Mar 10, 2026
…act#56021) Summary: X-link: react/yoga#1915 Pull Request resolved: react#56021 Changelog: [Internal] Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes. Changes: - Convert `YogaConfigJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Convert `YogaNodeJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Remove `super.finalize()` calls (no-op in parent chain, and `Object.finalize()` is not directly callable from Kotlin) The `:yoga` Buck target already has `language = "KOTLIN"` and globs both `*.java` and `*.kt`, so no build config changes are needed. Differential Revision: D95872345
andrewdacenko
added a commit
to andrewdacenko/yoga
that referenced
this pull request
Mar 10, 2026
…act#1915) Summary: Pull Request resolved: react#1915 X-link: react/react-native#56021 Changelog: [Internal] Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes. Changes: - Convert `YogaConfigJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Convert `YogaNodeJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Remove `super.finalize()` calls (no-op in parent chain, and `Object.finalize()` is not directly callable from Kotlin) The `:yoga` Buck target already has `language = "KOTLIN"` and globs both `*.java` and `*.kt`, so no build config changes are needed. Differential Revision: D95872345
0878e13 to
a74eaa1
Compare
…act#1915) Summary: Pull Request resolved: react#1915 X-link: react/react-native#56021 Changelog: [Internal] Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes. Changes: - Convert `YogaConfigJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Convert `YogaNodeJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Remove `super.finalize()` calls (no-op in parent chain, and `Object.finalize()` is not directly callable from Kotlin) The `:yoga` Buck target already has `language = "KOTLIN"` and globs both `*.java` and `*.kt`, so no build config changes are needed. Differential Revision: D95872345
a74eaa1 to
fd92b79
Compare
cortinico
approved these changes
Mar 10, 2026
cortinico
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
andrewdacenko
added a commit
to andrewdacenko/react-native
that referenced
this pull request
Mar 10, 2026
…act#56021) Summary: X-link: react/yoga#1915 Pull Request resolved: react#56021 Changelog: [Internal] Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes. Changes: - Convert `YogaConfigJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Convert `YogaNodeJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Remove `super.finalize()` calls (no-op in parent chain, and `Object.finalize()` is not directly callable from Kotlin) The `:yoga` Buck target already has `language = "KOTLIN"` and globs both `*.java` and `*.kt`, so no build config changes are needed. Reviewed By: cortinico Differential Revision: D95872345
meta-codesync Bot
pushed a commit
to react/react-native
that referenced
this pull request
Mar 11, 2026
…6021) Summary: X-link: react/yoga#1915 Pull Request resolved: #56021 Changelog: [Internal] Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes. Changes: - Convert `YogaConfigJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Convert `YogaNodeJNIFinalizer.java` → `.kt` (ReactAndroid + xplat/yoga copies) - Remove `super.finalize()` calls (no-op in parent chain, and `Object.finalize()` is not directly callable from Kotlin) The `:yoga` Buck target already has `language = "KOTLIN"` and globs both `*.java` and `*.kt`, so no build config changes are needed. Reviewed By: cortinico Differential Revision: D95872345 fbshipit-source-id: 371d0eee8874f3436e41d8d5ba6083ce174c0f18
|
This pull request has been merged in 2efbfb2. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Changelog: [Internal]
Convert the last two Java finalizer classes in the yoga package to Kotlin, continuing the React Native Kotlinification effort. Both classes are simple JNI native memory cleanup wrappers (32 and 36 lines) that extend already-Kotlin base classes.
Changes:
YogaConfigJNIFinalizer.java→.kt(ReactAndroid + xplat/yoga copies)YogaNodeJNIFinalizer.java→.kt(ReactAndroid + xplat/yoga copies)super.finalize()calls (no-op in parent chain, andObject.finalize()is not directly callable from Kotlin)The
:yogaBuck target already haslanguage = "KOTLIN"and globs both*.javaand*.kt, so no build config changes are needed.Differential Revision: D95872345