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:
Zac Sweers
2019-07-02 18:22:39 -04:00
parent 687acba760
commit aea8675252

View File

@@ -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()) {