From f36c1bc222d5450f9c3f9a1203b2a6bed4f57026 Mon Sep 17 00:00:00 2001 From: Joel Leitch Date: Mon, 4 Apr 2011 23:17:43 +0000 Subject: [PATCH] Very minor cleanup. --- gson/src/main/java/com/google/gson/GsonBuilder.java | 5 ++--- gson/src/test/java/com/google/gson/functional/MapTest.java | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gson/src/main/java/com/google/gson/GsonBuilder.java b/gson/src/main/java/com/google/gson/GsonBuilder.java index 6b1f91c6..806f8d3f 100644 --- a/gson/src/main/java/com/google/gson/GsonBuilder.java +++ b/gson/src/main/java/com/google/gson/GsonBuilder.java @@ -16,7 +16,9 @@ package com.google.gson; +import com.google.gson.DefaultTypeAdapters.DefaultDateTypeAdapter; import com.google.gson.internal.$Preconditions; + import java.lang.reflect.Type; import java.sql.Timestamp; import java.text.DateFormat; @@ -28,8 +30,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import com.google.gson.DefaultTypeAdapters.DefaultDateTypeAdapter; - /** *

Use this builder to construct a {@link Gson} instance when you need to set configuration * options other than the default. For {@link Gson} with default configuration, it is simpler to @@ -368,7 +368,6 @@ public final class GsonBuilder { return this; } - /** * Configures Gson to apply a set of exclusion strategies during deserialization. * Each of the {@code strategies} will be applied as a disjunction rule. diff --git a/gson/src/test/java/com/google/gson/functional/MapTest.java b/gson/src/test/java/com/google/gson/functional/MapTest.java index e46baaf4..ca77d0b3 100755 --- a/gson/src/test/java/com/google/gson/functional/MapTest.java +++ b/gson/src/test/java/com/google/gson/functional/MapTest.java @@ -158,7 +158,6 @@ public class MapTest extends TestCase { assertTrue(json.contains("\"a\":\"b\"")); } - @SuppressWarnings("unchecked") public void testParameterizedMapSubclassDeserialization() { Type type = new TypeToken>() {}.getType(); String json = "{\"a\":1,\"b\":2}";