mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Merge pull request #751 from square/eric.platform-type
Improve error message for platform types.
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user