Replace explicit generic type with diamond operator
See gh-15424
This commit is contained in:
committed by
Stephane Nicoll
parent
f040459ae5
commit
a2ebba8db1
@@ -35,7 +35,7 @@ class HateoasController {
|
||||
|
||||
@RequestMapping("/resource")
|
||||
public Resource<Map<String, String>> resource() {
|
||||
return new Resource<>(new HashMap<String, String>(),
|
||||
return new Resource<>(new HashMap<>(),
|
||||
new Link("self", "http://api.example.com"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user