Polishing

Issue: SPR-12112
This commit is contained in:
Juergen Hoeller
2014-08-22 14:00:28 +02:00
parent 9dfbc5326b
commit 439ce4a1a5
2 changed files with 17 additions and 22 deletions

View File

@@ -34,7 +34,7 @@ public class ResponseEntityTests {
String headerName = "My-Custom-Header";
String headerValue1 = "HeaderValue1";
String headerValue2 = "HeaderValue2";
Integer entity = new Integer(42);
Integer entity = 42;
ResponseEntity<Integer> responseEntity =
ResponseEntity.status(HttpStatus.OK).header(headerName, headerValue1, headerValue2).body(entity);
@@ -60,7 +60,7 @@ public class ResponseEntityTests {
@Test
public void okEntity() {
Integer entity = new Integer(42);
Integer entity = 42;
ResponseEntity<Integer> responseEntity = ResponseEntity.ok(entity);
assertNotNull(responseEntity);
@@ -151,5 +151,4 @@ public class ResponseEntityTests {
assertNull(responseEntity.getBody());
}
}
}