Replace explicit generic type with diamond operator

See gh-15424
This commit is contained in:
igor-suhorukov
2018-12-08 15:27:31 +03:00
committed by Stephane Nicoll
parent f040459ae5
commit a2ebba8db1
8 changed files with 16 additions and 16 deletions

View File

@@ -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"));
}