mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Improve error message for platform types.
The error message about platform types will never contain qualifiers. Also, simplify platform type check.
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