From 73117fe65256dadd2eb9e882b7212e9e878493b7 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Sun, 28 Dec 2008 00:00:12 +0000 Subject: [PATCH] Wrapping UUID deserializer in exception wrapper to make it consistent with other deserializers --- gson/src/main/java/com/google/gson/DefaultTypeAdapters.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java b/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java index 5480f8eb..615606f7 100644 --- a/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java +++ b/gson/src/main/java/com/google/gson/DefaultTypeAdapters.java @@ -129,7 +129,7 @@ final class DefaultTypeAdapters { map.register(Enum.class, wrapDeserializer(ENUM_TYPE_ADAPTER)); map.register(URL.class, wrapDeserializer(URL_TYPE_ADAPTER)); map.register(URI.class, wrapDeserializer(URI_TYPE_ADAPTER)); - map.register(UUID.class, UUUID_TYPE_ADAPTER); + map.register(UUID.class, wrapDeserializer(UUUID_TYPE_ADAPTER)); map.register(Locale.class, wrapDeserializer(LOCALE_TYPE_ADAPTER)); map.register(Collection.class, wrapDeserializer(COLLECTION_TYPE_ADAPTER)); map.register(Map.class, wrapDeserializer(MAP_TYPE_ADAPTER));