incorporated review comments from r768
This commit is contained in:
parent
21ddfc9b12
commit
1a9a54dcc2
@ -157,7 +157,6 @@ public class MapTest extends TestCase {
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testParameterizedMapSubclassDeserialization() {
|
||||
Type type = new TypeToken<MyParameterizedMap<String, Integer>>() {}.getType();
|
||||
Gson gson = new Gson();
|
||||
String json = "{\"a\":1,\"b\":2}";
|
||||
MyParameterizedMap<String, Integer> map = gson.fromJson(json, type);
|
||||
assertEquals(1, map.get("a").intValue());
|
||||
|
Loading…
Reference in New Issue
Block a user