From aea86752525cf81eebdd4cf0dc029e3801565b15 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Tue, 2 Jul 2019 18:22:39 -0400 Subject: [PATCH] Pass raw type rather than possibly-generic type in platform type error We only check the raw type here, so the message should match --- moshi/src/main/java/com/squareup/moshi/ClassJsonAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moshi/src/main/java/com/squareup/moshi/ClassJsonAdapter.java b/moshi/src/main/java/com/squareup/moshi/ClassJsonAdapter.java index 3f64c74..b65b47a 100644 --- a/moshi/src/main/java/com/squareup/moshi/ClassJsonAdapter.java +++ b/moshi/src/main/java/com/squareup/moshi/ClassJsonAdapter.java @@ -57,7 +57,7 @@ final class ClassJsonAdapter extends JsonAdapter { 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()) {