You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2026/07/23 11:30:24 UTC

(shardingsphere) branch master updated: Refactor MCPCompletionCandidate (#39223)

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 78865882e53 Refactor MCPCompletionCandidate (#39223)
78865882e53 is described below

commit 78865882e539133778f397f8a3e2ee8fec2613f6
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Thu Jul 23 19:30:18 2026 +0800

    Refactor MCPCompletionCandidate (#39223)
---
 .../mcp/api/capability/completion/MCPCompletionCandidate.java | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/mcp/api/src/main/java/org/apache/shardingsphere/mcp/api/capability/completion/MCPCompletionCandidate.java b/mcp/api/src/main/java/org/apache/shardingsphere/mcp/api/capability/completion/MCPCompletionCandidate.java
index b99b931a8f8..aa27693900b 100644
--- a/mcp/api/src/main/java/org/apache/shardingsphere/mcp/api/capability/completion/MCPCompletionCandidate.java
+++ b/mcp/api/src/main/java/org/apache/shardingsphere/mcp/api/capability/completion/MCPCompletionCandidate.java
@@ -18,13 +18,14 @@
 package org.apache.shardingsphere.mcp.api.capability.completion;
 
 import lombok.Getter;
+import lombok.RequiredArgsConstructor;
 
 import java.time.Instant;
-import java.util.Objects;
 
 /**
  * MCP completion candidate.
  */
+@RequiredArgsConstructor
 @Getter
 public final class MCPCompletionCandidate {
     
@@ -41,12 +42,4 @@ public final class MCPCompletionCandidate {
     public MCPCompletionCandidate(final String value, final String label, final String source) {
         this(value, label, source, null, "");
     }
-    
-    public MCPCompletionCandidate(final String value, final String label, final String source, final Instant updateTime, final String rankingReason) {
-        this.value = value;
-        this.label = label;
-        this.source = source;
-        this.updateTime = updateTime;
-        this.rankingReason = Objects.toString(rankingReason, "");
-    }
 }