From 43dedbbd63ca4a8eb0ea0aedb5b93325e3ef122c Mon Sep 17 00:00:00 2001 From: Ahmed El-Helw Date: Thu, 19 Jan 2017 16:15:22 -0800 Subject: [PATCH] Fix typo in generated Yoga classes Reviewed By: emilsjolander Differential Revision: D4416273 fbshipit-source-id: fa3f87b86560121e1186cdc0ee295eb052fb3a97 --- ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java | 2 +- .../main/java/com/facebook/yoga/YogaExperimentalFeature.java | 2 +- .../src/main/java/com/facebook/yoga/YogaFlexDirection.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java | 2 +- .../src/main/java/com/facebook/yoga/YogaMeasureMode.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java | 2 +- .../src/main/java/com/facebook/yoga/YogaPositionType.java | 2 +- .../src/main/java/com/facebook/yoga/YogaPrintOptions.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java | 2 +- ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java index 7466dcda90f0a6..885ecda04b4fa7 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaAlign.java @@ -38,7 +38,7 @@ public static YogaAlign fromInt(int value) { case 3: return FLEX_END; case 4: return STRETCH; case 5: return BASELINE; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java index dfa3c093672a7b..28cc0ef2ed641b 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDimension.java @@ -30,7 +30,7 @@ public static YogaDimension fromInt(int value) { switch (value) { case 0: return WIDTH; case 1: return HEIGHT; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java index f0955bd7ea6aeb..372c0977b623fd 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaDirection.java @@ -32,7 +32,7 @@ public static YogaDirection fromInt(int value) { case 0: return INHERIT; case 1: return LTR; case 2: return RTL; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java index 8c6c7a7456bff5..f5aca92d31c957 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaEdge.java @@ -44,7 +44,7 @@ public static YogaEdge fromInt(int value) { case 6: return HORIZONTAL; case 7: return VERTICAL; case 8: return ALL; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java index 19c540cae89e13..3ac45e79deb007 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaExperimentalFeature.java @@ -30,7 +30,7 @@ public static YogaExperimentalFeature fromInt(int value) { switch (value) { case 0: return ROUNDING; case 1: return WEB_FLEX_BASIS; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java index d01cc96adeeffd..f430e54721cbdd 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaFlexDirection.java @@ -34,7 +34,7 @@ public static YogaFlexDirection fromInt(int value) { case 1: return COLUMN_REVERSE; case 2: return ROW; case 3: return ROW_REVERSE; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java index be481bf312d759..fb972ae21d5abc 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaJustify.java @@ -36,7 +36,7 @@ public static YogaJustify fromInt(int value) { case 2: return FLEX_END; case 3: return SPACE_BETWEEN; case 4: return SPACE_AROUND; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java index b6b33caa11d9dd..4fd8a769eac662 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaLogLevel.java @@ -36,7 +36,7 @@ public static YogaLogLevel fromInt(int value) { case 2: return INFO; case 3: return DEBUG; case 4: return VERBOSE; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java index 68fb6c5df6513d..26a1b485dcc0ed 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaMeasureMode.java @@ -32,7 +32,7 @@ public static YogaMeasureMode fromInt(int value) { case 0: return UNDEFINED; case 1: return EXACTLY; case 2: return AT_MOST; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java index d0509e2401d37d..97a7e12db1864b 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaOverflow.java @@ -32,7 +32,7 @@ public static YogaOverflow fromInt(int value) { case 0: return VISIBLE; case 1: return HIDDEN; case 2: return SCROLL; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java index fe2d4fd23fc83c..0e39c8bc4c85bb 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPositionType.java @@ -30,7 +30,7 @@ public static YogaPositionType fromInt(int value) { switch (value) { case 0: return RELATIVE; case 1: return ABSOLUTE; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java index dae2866064002e..59e170fb8625ec 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaPrintOptions.java @@ -32,7 +32,7 @@ public static YogaPrintOptions fromInt(int value) { case 1: return LAYOUT; case 2: return STYLE; case 4: return CHILDREN; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java index 43e4b787b9fc47..f14e5216c95250 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaUnit.java @@ -32,7 +32,7 @@ public static YogaUnit fromInt(int value) { case 0: return UNDEFINED; case 1: return PIXEL; case 2: return PERCENT; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } } diff --git a/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java b/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java index 91cc3d5a8a13e9..8109c56cc6aba1 100644 --- a/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java +++ b/ReactAndroid/src/main/java/com/facebook/yoga/YogaWrap.java @@ -30,7 +30,7 @@ public static YogaWrap fromInt(int value) { switch (value) { case 0: return NO_WRAP; case 1: return WRAP; - default: throw new IllegalArgumentException("Unkown enum value: " + value); + default: throw new IllegalArgumentException("Unknown enum value: " + value); } } }