Set method scope properly
Signed-off-by: “JermaineHua” <crazyhzm@apache.org>
This commit is contained in:
parent
26460e640b
commit
f3e3a65ca6
1 changed files with 3 additions and 3 deletions
|
|
@ -98,7 +98,7 @@ public final class McpSchema {
|
|||
// Sampling Methods
|
||||
public static final String METHOD_SAMPLING_CREATE_MESSAGE = "sampling/createMessage";
|
||||
|
||||
private static ObjectMapper OBJECT_MAPPER = new ObjectMapper();
|
||||
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
|
||||
|
||||
// ---------------------------
|
||||
// JSON-RPC Error Codes
|
||||
|
|
@ -106,7 +106,7 @@ public final class McpSchema {
|
|||
/**
|
||||
* Standard error codes used in MCP JSON-RPC responses.
|
||||
*/
|
||||
public final class ErrorCodes {
|
||||
public static final class ErrorCodes {
|
||||
|
||||
/**
|
||||
* Invalid JSON was received by the server.
|
||||
|
|
@ -705,7 +705,7 @@ public final class McpSchema {
|
|||
|
||||
} // @formatter:on
|
||||
|
||||
public static JsonSchema parseSchema(String schema) {
|
||||
private static JsonSchema parseSchema(String schema) {
|
||||
try {
|
||||
return OBJECT_MAPPER.readValue(schema, JsonSchema.class);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue