Clean up warnings and remove unused code
This commit is contained in:
@@ -185,10 +185,11 @@ public class RequestMappingReflectiveProcessorTests {
|
||||
|
||||
@GetMapping
|
||||
HttpEntity<Response> getHttpEntity() {
|
||||
return new HttpEntity(new Response("response"));
|
||||
return new HttpEntity<>(new Response("response"));
|
||||
}
|
||||
|
||||
@GetMapping
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
HttpEntity getRawHttpEntity() {
|
||||
return new HttpEntity(new Response("response"));
|
||||
}
|
||||
@@ -198,6 +199,7 @@ public class RequestMappingReflectiveProcessorTests {
|
||||
}
|
||||
|
||||
@PostMapping
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
void postRawHttpEntity(HttpEntity entity) {
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ import org.springframework.core.NestedExceptionUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public class NestedServletExceptionTests {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user