Polishing 349ec76: remove use of the diamond operator
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user