Skip to content

Commit 9b61740

Browse files
cortinicometa-codesync[bot]
authored andcommitted
Migrate YogaNodeJNIBase.java to Kotlin
Summary: Migrate YogaNodeJNIBase.java to YogaNodeJNIBase.kt, the last hand-written Java source file in the Yoga core library. This required converting all function overrides to Kotlin property overrides where the abstract YogaNode class declares them as val/var properties. Also changed nativePointer visibility in YogaConfigJNIBase from protected to internal to maintain same-module access that Java protected provided via package access. Changelog: [Internal] - Differential Revision: D104666335
1 parent 4ac31d2 commit 9b61740

3 files changed

Lines changed: 715 additions & 929 deletions

File tree

java/com/facebook/yoga/YogaConfigJNIBase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import com.facebook.yoga.YogaNative.jni_YGConfigSetPointScaleFactorJNI
1616
import com.facebook.yoga.YogaNative.jni_YGConfigSetUseWebDefaultsJNI
1717

1818
public abstract class YogaConfigJNIBase
19-
private constructor(@JvmField protected var nativePointer: Long) : YogaConfig() {
19+
private constructor(@JvmField internal var nativePointer: Long) : YogaConfig() {
2020
private var _logger: YogaLogger? = null
2121

2222
init {

0 commit comments

Comments
 (0)