diff --git a/java/com/facebook/yoga/YogaNodeFactory.java b/java/com/facebook/yoga/YogaNodeFactory.java deleted file mode 100644 index 912083a7..00000000 --- a/java/com/facebook/yoga/YogaNodeFactory.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -package com.facebook.yoga; - -public abstract class YogaNodeFactory { - public static YogaNode create() { - return new YogaNodeJNIFinalizer(); - } - - public static YogaNode create(YogaConfig config) { - return new YogaNodeJNIFinalizer(config); - } -} diff --git a/java/com/facebook/yoga/YogaNodeFactory.kt b/java/com/facebook/yoga/YogaNodeFactory.kt new file mode 100644 index 00000000..ead0d2be --- /dev/null +++ b/java/com/facebook/yoga/YogaNodeFactory.kt @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +package com.facebook.yoga + +public object YogaNodeFactory { + @JvmStatic public fun create(): YogaNode = YogaNodeJNIFinalizer() + + @JvmStatic public fun create(config: YogaConfig): YogaNode = YogaNodeJNIFinalizer(config) +}