Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit f3e3a65

Browse files
CrazyHZMtzolov
authored andcommitted
Set method scope properly
Signed-off-by: “JermaineHua” <[email protected]>
1 parent 26460e6 commit f3e3a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcp/src/main/java/org/springframework/ai/mcp/spec/McpSchema.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ private McpSchema() {
9898
// Sampling Methods
9999
public static final String METHOD_SAMPLING_CREATE_MESSAGE = "sampling/createMessage";
100100

101-
private static ObjectMapper OBJECT_MAPPER = new ObjectMapper();
101+
private static final ObjectMapper OBJECT_MAPPER = new ObjectMapper();
102102

103103
// ---------------------------
104104
// JSON-RPC Error Codes
105105
// ---------------------------
106106
/**
107107
* Standard error codes used in MCP JSON-RPC responses.
108108
*/
109-
public final class ErrorCodes {
109+
public static final class ErrorCodes {
110110

111111
/**
112112
* Invalid JSON was received by the server.
@@ -705,7 +705,7 @@ public Tool(String name, String description, String schema) {
705705

706706
} // @formatter:on
707707

708-
public static JsonSchema parseSchema(String schema) {
708+
private static JsonSchema parseSchema(String schema) {
709709
try {
710710
return OBJECT_MAPPER.readValue(schema, JsonSchema.class);
711711
}

0 commit comments

Comments
 (0)