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/08/31 04:59:41 UTC
(shardingsphere) branch master updated: Upgrade Eclipse JDT Formatter to 4.40 (#39663)
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 3f86f6804ad Upgrade Eclipse JDT Formatter to 4.40 (#39663)
3f86f6804ad is described below
commit 3f86f6804adc7199c4e0fe9f4fb49f7202b66707
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Mon Aug 31 12:59:33 2026 +0800
Upgrade Eclipse JDT Formatter to 4.40 (#39663)
- Update Spotless to use Eclipse JDT 4.40
- Apply deterministic formatter changes
---
.../mcp/core/completion/handler/MetadataCompletionHandler.java | 9 ++++++---
pom.xml | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/completion/handler/MetadataCompletionHandler.java b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/completion/handler/MetadataCompletionHandler.java
index e25ecf1387b..55ec2acde28 100644
--- a/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/completion/handler/MetadataCompletionHandler.java
+++ b/mcp/core/src/main/java/org/apache/shardingsphere/mcp/core/completion/handler/MetadataCompletionHandler.java
@@ -214,12 +214,15 @@ public final class MetadataCompletionHandler implements MCPCompletionHandler<MCP
case SCHEMA -> database.isEmpty() ? "" : String.format("shardingsphere://databases/%s/schemas", encode(database));
case TABLE -> database.isEmpty() || schema.isEmpty() ? "" : String.format("shardingsphere://databases/%s/schemas/%s/tables", encode(database), encode(schema));
case SEQUENCE -> database.isEmpty() || schema.isEmpty()
- ? "" : String.format("shardingsphere://databases/%s/schemas/%s/sequences", encode(database), encode(schema));
+ ? ""
+ : String.format("shardingsphere://databases/%s/schemas/%s/sequences", encode(database), encode(schema));
case STORAGE_UNIT -> database.isEmpty() ? "" : String.format("shardingsphere://databases/%s/storage-units", encode(database));
case COLUMN -> database.isEmpty() || schema.isEmpty() || table.isEmpty()
- ? "" : String.format("shardingsphere://databases/%s/schemas/%s/tables/%s/columns", encode(database), encode(schema), encode(table));
+ ? ""
+ : String.format("shardingsphere://databases/%s/schemas/%s/tables/%s/columns", encode(database), encode(schema), encode(table));
case INDEX -> database.isEmpty() || schema.isEmpty() || table.isEmpty()
- ? "" : String.format("shardingsphere://databases/%s/schemas/%s/tables/%s/indexes", encode(database), encode(schema), encode(table));
+ ? ""
+ : String.format("shardingsphere://databases/%s/schemas/%s/tables/%s/indexes", encode(database), encode(schema), encode(table));
case UNKNOWN -> "";
};
}
diff --git a/pom.xml b/pom.xml
index ae3c5cfc224..29816e5e3bf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1323,7 +1323,7 @@
<configuration>
<java>
<eclipse>
- <version>4.35</version>
+ <version>4.40</version>
<!--suppress MavenModelInspection -->
<file>${maven.multiModuleProjectDirectory}/src/resources/spotless/java.xml</file>
</eclipse>