From 7970c3689300bb834e2f26f9d79987284510130b Mon Sep 17 00:00:00 2001 From: David Mihola Date: Tue, 29 Sep 2015 10:44:41 +0200 Subject: [PATCH] Make two methods on Types public. To facilitate custom JsonAdapter.Factory implementations. --- moshi/src/main/java/com/squareup/moshi/Types.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moshi/src/main/java/com/squareup/moshi/Types.java b/moshi/src/main/java/com/squareup/moshi/Types.java index 5a4dbbb..c5b3dd0 100644 --- a/moshi/src/main/java/com/squareup/moshi/Types.java +++ b/moshi/src/main/java/com/squareup/moshi/Types.java @@ -93,7 +93,7 @@ public final class Types { } } - static Class getRawType(Type type) { + public static Class getRawType(Type type) { if (type instanceof Class) { // type is a normal class. return (Class) type; @@ -260,7 +260,7 @@ public final class Types { * Returns the element type of this collection type. * @throws IllegalArgumentException if this type is not a collection. */ - static Type collectionElementType(Type context, Class contextRawType) { + public static Type collectionElementType(Type context, Class contextRawType) { Type collectionType = getSupertype(context, contextRawType, Collection.class); if (collectionType instanceof WildcardType) {