Skip to content

Commit 70502e7

Browse files
committed
.
Signed-off-by: He-Pin <hepin1989@gmail.com>
1 parent 2b4e4b9 commit 70502e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mcp-spring/mcp-spring-webflux/src/main/java/io/modelcontextprotocol/client/transport/WebClientStreamableHttpTransport.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,27 +603,31 @@ public WebClientStreamableHttpTransport build() {
603603
/**
604604
* Needed for Spring 5 compatibility
605605
*/
606+
@SuppressWarnings("deprecation")
606607
private static boolean isBadRequest(final WebClientResponseException responseException) {
607608
return responseException.getRawStatusCode() == HttpStatus.BAD_REQUEST.value();
608609
}
609610

610611
/**
611612
* Needed for Spring 5 compatibility
612613
*/
614+
@SuppressWarnings("deprecation")
613615
private static boolean isNotFound(ClientResponse response) {
614616
return response.rawStatusCode() == HttpStatus.NOT_FOUND.value();
615617
}
616618

617619
/**
618620
* Needed for Spring 5 compatibility
619621
*/
622+
@SuppressWarnings("deprecation")
620623
private static boolean isNotAllowed(ClientResponse response) {
621624
return response.rawStatusCode() == HttpStatus.METHOD_NOT_ALLOWED.value();
622625
}
623626

624627
/**
625628
* Needed for Spring 5 compatibility
626629
*/
630+
@SuppressWarnings("deprecation")
627631
private static boolean is2xx(final ClientResponse response) {
628632
return response.rawStatusCode() >= 200 && response.rawStatusCode() < 300;
629633
}

0 commit comments

Comments
 (0)