mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Adding @CountEnum to simple enums in xplat/js
Summary: Using The Count to transform enums to ints in production builds: https://our.intern.facebook.com/intern/wiki/Android-java-transforms/the-count/ Reviewed By: achen1 Differential Revision: D9614432 fbshipit-source-id: 1b1a197ad8f4962712d6006ab07b3beb3eaf2432
This commit is contained in:
committed by
Facebook Github Bot
parent
01d5eff425
commit
06bf7b1f00
@@ -13,6 +13,8 @@ import java.io.Writer;
|
||||
import java.util.ArrayDeque;
|
||||
import java.util.Deque;
|
||||
|
||||
import com.facebook.thecount.api.CountEnum;
|
||||
|
||||
/**
|
||||
* Simple Json generator that does no validation.
|
||||
*/
|
||||
@@ -207,6 +209,7 @@ public class JsonWriter implements Closeable {
|
||||
mScopes.push(scope);
|
||||
}
|
||||
|
||||
@CountEnum
|
||||
private enum Scope {
|
||||
EMPTY_OBJECT,
|
||||
OBJECT,
|
||||
|
||||
Reference in New Issue
Block a user