From 6818edecf95ab35b05c3459a25b4df3eedc07e84 Mon Sep 17 00:00:00 2001 From: Inderjeet Singh Date: Thu, 25 Nov 2010 00:16:06 +0000 Subject: [PATCH] enabled GsonBuilder.registerTypeHierarchyAdapter since head is now for Gson 1.7 --- gson/src/main/java/com/google/gson/GsonBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 48732562..9141318f 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -431,7 +431,7 @@ public final class GsonBuilder { * @return a reference to this {@code GsonBuilder} object to fulfill the "Builder" pattern * @since 1.7 */ - GsonBuilder registerTypeHierarchyAdapter(Class baseType, Object typeAdapter) { + public GsonBuilder registerTypeHierarchyAdapter(Class baseType, Object typeAdapter) { Preconditions.checkArgument(typeAdapter instanceof JsonSerializer || typeAdapter instanceof JsonDeserializer || typeAdapter instanceof InstanceCreator); if (typeAdapter instanceof InstanceCreator) {