Clean up warnings in Gradle build
This commit is contained in:
@@ -119,6 +119,7 @@ class FormHttpMessageConverterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
void readFormMultiValue() throws Exception {
|
||||
String body = "name+1=value+1&name+2=value+2%2B1&name+2=value+2%2B2&name+3";
|
||||
MockHttpInputMessage inputMessage = new MockHttpInputMessage(body.getBytes(StandardCharsets.ISO_8859_1));
|
||||
@@ -134,7 +135,7 @@ class FormHttpMessageConverterTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("rawtypes")
|
||||
@SuppressWarnings({ "rawtypes", "unchecked" })
|
||||
void readFormSingleValue() throws Exception {
|
||||
String body = "name+1=value+1&name+2=value+2%2B1&name+2=value+2%2B2&name+3";
|
||||
MockHttpInputMessage inputMessage = new MockHttpInputMessage(body.getBytes(StandardCharsets.ISO_8859_1));
|
||||
|
||||
@@ -58,7 +58,6 @@ class RequestAttributesThreadLocalAccessorTests {
|
||||
@MethodSource
|
||||
@SuppressWarnings({ "try", "unused" })
|
||||
void propagation(RequestAttributes previousRequest, RequestAttributes currentRequest) throws Exception {
|
||||
|
||||
ContextSnapshot snapshot = getSnapshotFor(currentRequest);
|
||||
|
||||
AtomicReference<RequestAttributes> requestInScope = new AtomicReference<>();
|
||||
@@ -80,6 +79,7 @@ class RequestAttributesThreadLocalAccessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("try")
|
||||
void accessAfterRequestMarkedCompleted() {
|
||||
MockHttpServletRequest servletRequest = new MockHttpServletRequest();
|
||||
servletRequest.setAttribute("k1", "v1");
|
||||
@@ -100,8 +100,8 @@ class RequestAttributesThreadLocalAccessorTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("try")
|
||||
void accessBeforeRequestMarkedCompleted() {
|
||||
|
||||
MockHttpServletRequest servletRequest = new MockHttpServletRequest();
|
||||
ServletRequestAttributes previous = new ServletRequestAttributes(servletRequest, new MockHttpServletResponse());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user