Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove deprecated code, fix warnings, and use JUnit 4 #763

Merged
merged 2 commits into from
Aug 5, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
generics
  • Loading branch information
elharo committed Aug 4, 2019
commit b3e5d867c6f46979bbbd8d8cb268bc5ffbaff804
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public void testSerialize_simpleMap() throws Exception {
StringWriter writer = new StringWriter();
JsonGenerator generator = newGenerator(writer);

Map<String, String> m = new HashMap<String, String>();
m.put("a", "b");
Map<String, String> map = new HashMap<String, String>();
map.put("a", "b");

generator.serialize(m);
generator.serialize(map);
generator.close();
assertEquals("{\"a\":\"b\"}", writer.toString());
}
Expand All @@ -50,10 +50,10 @@ public void testSerialize_iterableMap() throws Exception {
StringWriter writer = new StringWriter();
JsonGenerator generator = newGenerator(writer);

Map m = new IterableMap();
m.put("a", "b");
Map<String, String> map = new IterableMap();
map.put("a", "b");

generator.serialize(m);
generator.serialize(map);
generator.close();
assertEquals("{\"a\":\"b\"}", writer.toString());
}
Expand Down