Skip to content

Commit

Permalink
Fix typo. (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
NightlyNexus authored and vanniktech committed Apr 5, 2018
1 parent 834560b commit 982a9a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ final class FallbackEnumJsonAdapter<T extends Enum<T>> extends JsonAdapter<T> {
if (fallbackConstantIndex != -1) {
fallbackConstant = constants[fallbackConstantIndex];
} else {
throw new NoSuchFieldException("Filed \"" + fallback + "\" is not declared.");
throw new NoSuchFieldException("Field \"" + fallback + "\" is not declared.");
}
} catch (NoSuchFieldException e) {
throw new AssertionError("Missing field in " + enumType.getName(), e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public final class FallbackEnumJsonAdapterTest {
} catch (Error ex) {
assertThat(ex).hasMessage("Missing field in "
+ "com.serjltt.moshi.adapters.FallbackEnumJsonAdapterTest$Value");
assertThat(ex.getCause()).hasMessage("Filed \"UNK\" is not declared.");
assertThat(ex.getCause()).hasMessage("Field \"UNK\" is not declared.");
}
}

Expand Down

0 comments on commit 982a9a3

Please sign in to comment.