Very minor cleanup.
This commit is contained in:
parent
7c42ef3e5d
commit
f36c1bc222
@ -16,7 +16,9 @@
|
|||||||
|
|
||||||
package com.google.gson;
|
package com.google.gson;
|
||||||
|
|
||||||
|
import com.google.gson.DefaultTypeAdapters.DefaultDateTypeAdapter;
|
||||||
import com.google.gson.internal.$Preconditions;
|
import com.google.gson.internal.$Preconditions;
|
||||||
|
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.sql.Timestamp;
|
import java.sql.Timestamp;
|
||||||
import java.text.DateFormat;
|
import java.text.DateFormat;
|
||||||
@ -28,8 +30,6 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
import com.google.gson.DefaultTypeAdapters.DefaultDateTypeAdapter;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>Use this builder to construct a {@link Gson} instance when you need to set configuration
|
* <p>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
|
* 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;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configures Gson to apply a set of exclusion strategies during deserialization.
|
* Configures Gson to apply a set of exclusion strategies during deserialization.
|
||||||
* Each of the {@code strategies} will be applied as a disjunction rule.
|
* Each of the {@code strategies} will be applied as a disjunction rule.
|
||||||
|
@ -158,7 +158,6 @@ public class MapTest extends TestCase {
|
|||||||
assertTrue(json.contains("\"a\":\"b\""));
|
assertTrue(json.contains("\"a\":\"b\""));
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
|
||||||
public void testParameterizedMapSubclassDeserialization() {
|
public void testParameterizedMapSubclassDeserialization() {
|
||||||
Type type = new TypeToken<MyParameterizedMap<String, Integer>>() {}.getType();
|
Type type = new TypeToken<MyParameterizedMap<String, Integer>>() {}.getType();
|
||||||
String json = "{\"a\":1,\"b\":2}";
|
String json = "{\"a\":1,\"b\":2}";
|
||||||
|
Loading…
Reference in New Issue
Block a user