From 3352e60631c4bec64cd10e2bf495ec7fcd310427 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 16 Dec 2015 11:40:17 +0000 Subject: [PATCH] =?UTF-8?q?Remove=20use=20of=20diamond=20operator=20in=20t?= =?UTF-8?q?ests=20so=20that=20they=E2=80=99re=20Java=206=20compatible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-4163 --- .../mobile/DeviceResolverAutoConfigurationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java index b4e2abaee5..06e2d49bca 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java @@ -128,9 +128,9 @@ public class DeviceResolverAutoConfigurationTests { @RequestMapping("/") public ResponseEntity test(Device device) { if (device.getDevicePlatform() != null) { - return new ResponseEntity<>(HttpStatus.OK); + return new ResponseEntity(HttpStatus.OK); } - return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR); + return new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR); } }