File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
main/java/io/modelcontextprotocol/client
test/java/io/modelcontextprotocol Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -66,11 +66,7 @@ public class McpSyncClient implements AutoCloseable {
6666 * Create a new McpSyncClient with the given delegate.
6767 * @param delegate the asynchronous kernel on top of which this synchronous client
6868 * provides a blocking API.
69- * @deprecated This method will be removed in 0.9.0. Use
70- * {@link McpClient#sync(McpClientTransport)} to obtain an instance.
7169 */
72- @ Deprecated
73- // TODO make the constructor package private post-deprecation
7470 McpSyncClient (McpAsyncClient delegate ) {
7571 Assert .notNull (delegate , "The delegate can not be null" );
7672 this .delegate = delegate ;
Original file line number Diff line number Diff line change @@ -55,9 +55,7 @@ public McpSchema.JSONRPCMessage getLastSentMessage() {
5555
5656 @ Override
5757 public Mono <Void > closeGracefully () {
58- return Mono .defer (() -> {
59- return Mono .empty ();
60- });
58+ return Mono .empty ();
6159 }
6260
6361 @ Override
You can’t perform that action at this time.
0 commit comments