Introduce cloning mechanism for React Shadow Node

Reviewed By: achen1

Differential Revision: D7018869

fbshipit-source-id: beca45b1df9602ebbc9172091b24a2bf44e103f4
This commit is contained in:
David Vacca
2018-02-20 19:03:59 -08:00
committed by Facebook Github Bot
parent 9dd7608c97
commit ad06403c3e
3 changed files with 66 additions and 11 deletions

View File

@@ -20,7 +20,7 @@ public class YogaNodePool {
synchronized (sInitLock) {
if (sPool == null) {
sPool = new ClearableSynchronizedPool<YogaNode>(1024);
sPool = new ClearableSynchronizedPool<>(1024);
}
return sPool;
}