removed explicit types from map instantiation (#1532)

* Solr w Apache SolrJ

* Solr w Apache SolrJ

* updated test names and moved add to @before method

* create apache-solrj module, moved code from spring-data-solr

* More examples for indexing,delete,and query for solrj

* More examples for indexing,delete,and query for solrj

* Jackson Map Serialize/Deserialize

* Jackson Map Serialize/Deserialize

* Jackson version update

* keydeserializer code added

* keydeserializer code added

* remove explicit types from map instantion
This commit is contained in:
Nancy Bosecker 2017-03-29 08:42:38 -07:00 committed by Grzegorz Piwowarek
parent 6f75ad86a6
commit b63ef448db
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ public class JacksonMapSerializeTest {
public void whenSimpleMapSerialize_thenCorrect()
throws JsonProcessingException {
Map<String, String> map = new HashMap<String, String>();
Map<String, String> map = new HashMap<>();
map.put("key", "value");
final ObjectMapper mapper = new ObjectMapper();
@ -43,7 +43,7 @@ public class JacksonMapSerializeTest {
public void whenCustomObjectStringMapSerialize_thenCorrect()
throws JsonProcessingException {
map = new HashMap<MyPair, String>();
map = new HashMap<>();
MyPair key = new MyPair("Abbott", "Costello");
map.put(key, "Comedy");
@ -57,7 +57,7 @@ public class JacksonMapSerializeTest {
public void whenCustomObjectObjectMapSerialize_thenCorrect()
throws JsonProcessingException {
cmap = new HashMap<MyPair, MyPair>();
cmap = new HashMap<>();
mapKey = new MyPair("Abbott", "Costello");
mapValue = new MyPair("Comedy", "1940's");
cmap.put(mapKey, mapValue);