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/02/08 04:33:06 UTC

(shardingsphere) branch master updated: Fix sonar issue on UniqueRuleItemNodePath (#34603)

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 fd269765d12 Fix sonar issue on UniqueRuleItemNodePath (#34603)
fd269765d12 is described below

commit fd269765d129d9c7fe59d40a01ca859a5868ea85
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Feb 8 12:33:01 2025 +0800

    Fix sonar issue on UniqueRuleItemNodePath (#34603)
    
    * Fix sonar issue on UniqueRuleItemNodePath
    
    * Fix sonar issue on UniqueRuleItemNodePath
---
 .../mode/node/path/config/rule/item/UniqueRuleItemNodePath.java         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mode/node/src/main/java/org/apache/shardingsphere/mode/node/path/config/rule/item/UniqueRuleItemNodePath.java b/mode/node/src/main/java/org/apache/shardingsphere/mode/node/path/config/rule/item/UniqueRuleItemNodePath.java
index d05e356c699..46f085bb5b4 100644
--- a/mode/node/src/main/java/org/apache/shardingsphere/mode/node/path/config/rule/item/UniqueRuleItemNodePath.java
+++ b/mode/node/src/main/java/org/apache/shardingsphere/mode/node/path/config/rule/item/UniqueRuleItemNodePath.java
@@ -42,7 +42,7 @@ public final class UniqueRuleItemNodePath {
     public UniqueRuleItemNodePath(final RuleRootNodePath ruleRootNodePath, final String parentNode, final String type) {
         this.parentNode = parentNode;
         this.type = type;
-        versionNodePathParser = new VersionNodePathParser(ruleRootNodePath.getNodePrefix() + parentNode + "/" + type);
+        versionNodePathParser = new VersionNodePathParser(String.join("/", ruleRootNodePath.getNodePrefix() + parentNode, type));
     }
     
     /**