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 2022/06/24 09:02:14 UTC

[shardingsphere] branch master updated: Refactor ShadowAlgorithmSegment (#18565)

This is an automated email from the ASF dual-hosted git repository.

zhaojinchao 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 b255adbbad8 Refactor ShadowAlgorithmSegment (#18565)
b255adbbad8 is described below

commit b255adbbad814c5e47b2032c1349fa62871f4476
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Fri Jun 24 17:02:06 2022 +0800

    Refactor ShadowAlgorithmSegment (#18565)
---
 .../shadow/distsql/parser/segment/ShadowAlgorithmSegment.java     | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-distsql/shardingsphere-shadow-distsql-statement/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/segment/ShadowAlgorithmSegment.java b/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-distsql/shardingsphere-shadow-distsql-statement/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/segment/ShadowAlgorithmSegment.java
index 458296af48f..2da065aaa17 100644
--- a/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-distsql/shardingsphere-shadow-distsql-statement/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/segment/ShadowAlgorithmSegment.java
+++ b/shardingsphere-features/shardingsphere-shadow/shardingsphere-shadow-distsql/shardingsphere-shadow-distsql-statement/src/main/java/org/apache/shardingsphere/shadow/distsql/parser/segment/ShadowAlgorithmSegment.java
@@ -17,21 +17,19 @@
 
 package org.apache.shardingsphere.shadow.distsql.parser.segment;
 
-import lombok.AllArgsConstructor;
 import lombok.Getter;
-import lombok.Setter;
+import lombok.RequiredArgsConstructor;
 import org.apache.shardingsphere.distsql.parser.segment.AlgorithmSegment;
 import org.apache.shardingsphere.sql.parser.api.visitor.ASTNode;
 
 /**
  * Shadow algorithms segment.
  */
-@AllArgsConstructor
+@RequiredArgsConstructor
 @Getter
 public final class ShadowAlgorithmSegment implements ASTNode {
     
-    @Setter
-    private String algorithmName;
+    private final String algorithmName;
     
     private final AlgorithmSegment algorithmSegment;