This is an automated email from the ASF dual-hosted git repository.
terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new e5a312b3870 Refactor MCPRegistryMetadataCommand (#40349)
e5a312b3870 is described below
commit e5a312b3870ef46d1a5e21a4cbb98cf47114f7ff
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Oct 22 23:58:24 2026 +0800
Refactor MCPRegistryMetadataCommand (#40349)
---
.../apache/shardingsphere/mcp/registry/MCPRegistryMetadataCommand.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/mcp/registry/src/main/java/org/apache/shardingsphere/mcp/registry/MCPRegistryMetadataCommand.java
b/mcp/registry/src/main/java/org/apache/shardingsphere/mcp/registry/MCPRegistryMetadataCommand.java
index c24b6137ee6..69a5685db8f 100644
---
a/mcp/registry/src/main/java/org/apache/shardingsphere/mcp/registry/MCPRegistryMetadataCommand.java
+++
b/mcp/registry/src/main/java/org/apache/shardingsphere/mcp/registry/MCPRegistryMetadataCommand.java
@@ -81,7 +81,7 @@ public final class MCPRegistryMetadataCommand {
*/
public static void execute(final String... args) throws IOException {
CommandOptions options = parseOptions(args);
- Map<String, Object> server =
JsonEngine.unmarshal(Files.readString(options.path()), new
JsonTypeReference<Map<String, Object>>() {
+ Map<String, Object> server =
JsonEngine.unmarshal(Files.readString(options.path()), new
JsonTypeReference<>() {
});
if (!options.validateOnly()) {
ShardingSpherePreconditions.checkState(!options.version().isBlank() &&
!options.identifier().isBlank(),