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:
committed by
Facebook Github Bot
parent
cbcf07f08a
commit
016a10df26
@@ -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
|
||||
|
Reference in New Issue
Block a user