Switch to YogaNode.create()

Summary:
@public

Switches instance creation from `new YogaNode()` to `YogaNode.create()`.

This allows for experimentation with different implementations, while maintaining API + ABI compatibility internally at FB, as well as for dependent projects in open source and elsewhere.

Reviewed By: amir-shalem

Differential Revision: D14122975

fbshipit-source-id: f194b146b7cd693dba1a7dafdf92d350e54cb179
This commit is contained in:
David Aurelio
2019-02-19 11:15:10 -08:00
committed by Facebook Github Bot
parent cbcf07f08a
commit 016a10df26
3 changed files with 6 additions and 6 deletions

View File

@@ -15,12 +15,12 @@ public class TestParametrization {
NodeFactory nodeFactory = new NodeFactory() {
@Override
public YogaNode create() {
return new YogaNode();
return YogaNode.create();
}
@Override
public YogaNode create(YogaConfig config) {
return new YogaNode(config);
return YogaNode.create(config);
}
@Override