Polishing 349ec76: remove use of the diamond operator
This commit is contained in:
parent
349ec76e62
commit
280ac90cef
|
|
@ -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>();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue