Merge pull request #751 from square/eric.platform-type

Improve error message for platform types.
This commit is contained in:
Jesse Wilson
2018-11-20 20:05:13 -05:00
committed by GitHub
4 changed files with 18 additions and 36 deletions

View File

@@ -481,8 +481,8 @@ class KotlinJsonAdapterTest {
moshi.adapter(Triple::class.java)
fail()
} catch (e: IllegalArgumentException) {
assertThat(e).hasMessage("Platform class kotlin.Triple (with no annotations) "
+ "requires explicit JsonAdapter to be registered")
assertThat(e).hasMessage(
"Platform class kotlin.Triple requires explicit JsonAdapter to be registered")
}
}