Clean up warnings and remove unused code

This commit is contained in:
Sam Brannen
2022-07-03 18:56:47 +02:00
parent ce5076ffe8
commit adb2eef749
5 changed files with 8 additions and 8 deletions

View File

@@ -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) {
}

View File

@@ -22,6 +22,7 @@ import org.springframework.core.NestedExceptionUtils;
import static org.assertj.core.api.Assertions.assertThat;
@SuppressWarnings("deprecation")
public class NestedServletExceptionTests {
@Test