Permalink
Browse files

Fix typo in generated Yoga classes

Reviewed By: emilsjolander

Differential Revision: D4416273

fbshipit-source-id: fa3f87b86560121e1186cdc0ee295eb052fb3a97
  • Loading branch information...
ahmedre authored and facebook-github-bot committed Jan 20, 2017
1 parent 0426732 commit 43dedbbd63ca4a8eb0ea0aedb5b93325e3ef122c
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}
@@ -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);
}
}
}

0 comments on commit 43dedbb

Please sign in to comment.