mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 02:09:05 +00:00
Remove use of diamond operator in tests so that they’re Java 6 compatible
See gh-4163
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user