mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Pass raw type rather than possibly-generic type in platform type error
We only check the raw type here, so the message should match
This commit is contained in:
@@ -57,7 +57,7 @@ final class ClassJsonAdapter<T> extends JsonAdapter<T> {
|
||||
if (!annotations.isEmpty()) return null;
|
||||
if (Util.isPlatformType(rawType)) {
|
||||
throw new IllegalArgumentException(
|
||||
"Platform " + type + " requires explicit JsonAdapter to be registered");
|
||||
"Platform " + rawType + " requires explicit JsonAdapter to be registered");
|
||||
}
|
||||
|
||||
if (rawType.isAnonymousClass()) {
|
||||
|
Reference in New Issue
Block a user