Polishing 349ec76: remove use of the diamond operator

This commit is contained in:
Andy Wilkinson 2016-05-26 11:36:21 +01:00
parent 349ec76e62
commit 280ac90cef
1 changed files with 2 additions and 2 deletions

View File

@ -35,13 +35,13 @@ class HateoasController {
@RequestMapping("/resource")
public Resource<Map<String, String>> resource() {
return new Resource<Map<String, String>>(new HashMap<>(),
return new Resource<Map<String, String>>(new HashMap<String, String>(),
new Link("self", "http://api.example.com"));
}
@RequestMapping("/plain")
public Map<String, String> plain() {
return new HashMap<>();
return new HashMap<String, String>();
}
}