Skip to content

Commit 4ccd9c2

Browse files
committed
Address review comments
Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
1 parent 03efee0 commit 4ccd9c2

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

mcp/src/main/java/io/modelcontextprotocol/client/McpSyncClient.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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;

mcp/src/test/java/io/modelcontextprotocol/MockMcpServerTransport.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)