From 280ac90cef39c28f088e8894b1c5aeba1ab43746 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Thu, 26 May 2016 11:36:21 +0100 Subject: [PATCH] Polishing 349ec76: remove use of the diamond operator --- .../test/autoconfigure/web/servlet/HateoasController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/HateoasController.java b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/HateoasController.java index e8f11fc749..ed7a37a5a7 100644 --- a/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/HateoasController.java +++ b/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/web/servlet/HateoasController.java @@ -35,13 +35,13 @@ class HateoasController { @RequestMapping("/resource") public Resource> resource() { - return new Resource>(new HashMap<>(), + return new Resource>(new HashMap(), new Link("self", "http://api.example.com")); } @RequestMapping("/plain") public Map plain() { - return new HashMap<>(); + return new HashMap(); } }