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 2025/11/30 14:38:15 UTC
(shardingsphere) branch master updated: Fix typo (#37235)
This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 7c0f28829cb Fix typo (#37235)
7c0f28829cb is described below
commit 7c0f28829cbc7b522e5e4f3216b4aa69a4c4d6f0
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sun Nov 30 22:38:08 2025 +0800
Fix typo (#37235)
---
.../mode/persist/service/MetaDataManagerPersistService.java | 2 +-
.../mode/repository/cluster/ClusterPersistRepository.java | 2 +-
.../mode/repository/standalone/jdbc/JDBCRepositoryTest.java | 9 +--------
3 files changed, 3 insertions(+), 10 deletions(-)
diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/persist/service/MetaDataManagerPersistService.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/persist/service/MetaDataManagerPersistService.java
index d4e0475f23b..f760969b3fe 100644
--- a/mode/core/src/main/java/org/apache/shardingsphere/mode/persist/service/MetaDataManagerPersistService.java
+++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/persist/service/MetaDataManagerPersistService.java
@@ -168,7 +168,7 @@ public interface MetaDataManagerPersistService {
* Remove rule configuration.
*
* @param database database
- * @param toBeRemovedRuleConfig to be removed rule config
+ * @param toBeRemovedRuleConfig to be removed rule configuration
* @param ruleType rule type
*/
void removeRuleConfiguration(ShardingSphereDatabase database, RuleConfiguration toBeRemovedRuleConfig, String ruleType);
diff --git a/mode/type/cluster/repository/api/src/main/java/org/apache/shardingsphere/mode/repository/cluster/ClusterPersistRepository.java b/mode/type/cluster/repository/api/src/main/java/org/apache/shardingsphere/mode/repository/cluster/ClusterPersistRepository.java
index b25e90aed0b..c4f8670796b 100644
--- a/mode/type/cluster/repository/api/src/main/java/org/apache/shardingsphere/mode/repository/cluster/ClusterPersistRepository.java
+++ b/mode/type/cluster/repository/api/src/main/java/org/apache/shardingsphere/mode/repository/cluster/ClusterPersistRepository.java
@@ -57,7 +57,7 @@ public interface ClusterPersistRepository extends PersistRepository {
/**
* Get distributed lock.
*
- * @param lockKey kock key
+ * @param lockKey lock key
* @return distributed lock
*/
Optional<DistributedLock> getDistributedLock(String lockKey);
diff --git a/mode/type/standalone/repository/provider/jdbc/src/test/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepositoryTest.java b/mode/type/standalone/repository/provider/jdbc/src/test/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepositoryTest.java
index ff18ddc26ec..f3714f1453e 100644
--- a/mode/type/standalone/repository/provider/jdbc/src/test/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepositoryTest.java
+++ b/mode/type/standalone/repository/provider/jdbc/src/test/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepositoryTest.java
@@ -94,7 +94,7 @@ class JDBCRepositoryTest {
}
@Test
- void assertInit() throws Exception {
+ void assertInit() throws SQLException {
verify(mockStatement).execute(repositorySQL.getCreateTableSQL());
}
@@ -200,22 +200,15 @@ class JDBCRepositoryTest {
nextSeparatorIndex = key.length();
}
String directoryPath = key.substring(0, nextSeparatorIndex);
- // Verifying if get operation is called for every directory level
verify(mockPreparedStatement).setString(1, directoryPath);
- // Verifying that during insert operation, setString at index 2 is called for every directory level
verify(mockPreparedStatementForPersist).setString(2, directoryPath);
- // Verifying that during insert operation, setString at index 4 is called for every parent directory
verify(mockPreparedStatementForPersist).setString(4, parentDirectory);
beginIndex = nextSeparatorIndex;
parentDirectory = directoryPath;
}
- // Verifying that during insert operation, setString at index 3 is called with "" for all the parent directories
verify(mockPreparedStatementForPersist, times(depthOfDirectory - 1)).setString(3, "");
- // Verifying that during insert operation, setString at index 3 is called with the leaf node once
verify(mockPreparedStatementForPersist).setString(3, "test1_content");
- // Verifying that during insert operation, setString at index 1 is called with a UUID
verify(mockPreparedStatementForPersist, times(depthOfDirectory)).setString(eq(1), anyString());
- // Verifying that executeOperation in insert is called for all the directory levels
verify(mockPreparedStatementForPersist, times(depthOfDirectory)).executeUpdate();
}