Skip to content

Commit 15ab0ad

Browse files
committed
Clean up warnings in Gradle build output
1 parent 8acb8ae commit 15ab0ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/function/server/ResourceHandlerFunctionTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
/**
4343
* @author Arjen Poutsma
44+
* @since 5.0
4445
*/
4546
public class ResourceHandlerFunctionTests {
4647

@@ -80,6 +81,7 @@ public void get() throws IOException {
8081
Mono<Void> result = responseMono.flatMap(response -> {
8182
assertEquals(HttpStatus.OK, response.statusCode());
8283
assertTrue(response instanceof EntityResponse);
84+
@SuppressWarnings("unchecked")
8385
EntityResponse<Resource> entityResponse = (EntityResponse<Resource>) response;
8486
assertEquals(this.resource, entityResponse.entity());
8587
return response.writeTo(exchange, context);
@@ -115,6 +117,7 @@ public void head() throws IOException {
115117
Mono<Void> result = responseMono.flatMap(response -> {
116118
assertEquals(HttpStatus.OK, response.statusCode());
117119
assertTrue(response instanceof EntityResponse);
120+
@SuppressWarnings("unchecked")
118121
EntityResponse<Resource> entityResponse = (EntityResponse<Resource>) response;
119122
assertEquals(this.resource.getFilename(), entityResponse.entity().getFilename());
120123
return response.writeTo(exchange, context);

0 commit comments

Comments
 (0)