Browse Source

Remove use of diamond operator in tests so that they’re Java 6 compatible

See gh-4163
pull/4783/merge
Andy Wilkinson 10 years ago
parent
commit
3352e60631
  1. 4
      spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java

4
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/mobile/DeviceResolverAutoConfigurationTests.java

@ -128,9 +128,9 @@ public class DeviceResolverAutoConfigurationTests { @@ -128,9 +128,9 @@ public class DeviceResolverAutoConfigurationTests {
@RequestMapping("/")
public ResponseEntity<Void> test(Device device) {
if (device.getDevicePlatform() != null) {
return new ResponseEntity<>(HttpStatus.OK);
return new ResponseEntity<Void>(HttpStatus.OK);
}
return new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR);
return new ResponseEntity<Void>(HttpStatus.INTERNAL_SERVER_ERROR);
}
}

Loading…
Cancel
Save