Skip to content

Commit 0a4eb61

Browse files
authored
style: format code using spotless (#822)
## AgentScope-Java Version 1.0.10 ## Description [Please describe the background, purpose, changes made, and how to test this PR] ## Checklist Please check the following items before code is ready to be reviewed. - [x] Code has been formatted with `mvn spotless:apply` - [x] All tests are passing (`mvn test`) - [x] Javadoc comments are complete and follow project conventions - [x] Related documentation has been updated (e.g. links, examples, etc.) - [x] Code is ready for review
1 parent 35ccc77 commit 0a4eb61

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

agentscope-core/src/main/java/io/agentscope/core/tool/mcp/McpClientBuilder.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*/
1616
package io.agentscope.core.tool.mcp;
1717

18+
import static io.agentscope.core.Version.VERSION;
19+
1820
import io.modelcontextprotocol.client.McpAsyncClient;
1921
import io.modelcontextprotocol.client.McpClient;
2022
import io.modelcontextprotocol.client.McpSyncClient;
@@ -296,7 +298,7 @@ public Mono<McpClientWrapper> buildAsync() {
296298

297299
McpSchema.Implementation clientInfo =
298300
new McpSchema.Implementation(
299-
"agentscope-java", "AgentScope Java Framework", "1.0.10-SNAPSHOT");
301+
"agentscope-java", "AgentScope Java Framework", VERSION);
300302

301303
McpSchema.ClientCapabilities clientCapabilities =
302304
McpSchema.ClientCapabilities.builder().build();

agentscope-core/src/test/java/io/agentscope/core/VersionTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ void testVersionConstant() {
3030
// Verify version constant is set
3131
Assertions.assertNotNull(Version.VERSION, "VERSION constant should not be null");
3232
Assertions.assertFalse(Version.VERSION.isEmpty(), "VERSION constant should not be empty");
33-
Assertions.assertEquals("1.0.10-SNAPSHOT", Version.VERSION, "VERSION should match current version");
33+
Assertions.assertEquals(
34+
"1.0.10-SNAPSHOT", Version.VERSION, "VERSION should match current version");
3435
}
3536

3637
@Test

0 commit comments

Comments
 (0)