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 956effe470e Refactor ShardingSphereColumn constructor to use this() 
chaining (#37003)
956effe470e is described below

commit 956effe470efbfb53080ff86a1eb50645470d271
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Nov 4 13:29:12 2025 +0800

    Refactor ShardingSphereColumn constructor to use this() chaining (#37003)
    
    Replace manual field assignments with constructor chaining to improve code 
maintainability and follow DRY principles.
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    
    Co-authored-by: Claude <[email protected]>
---
 .../metadata/database/schema/model/ShardingSphereColumn.java   | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereColumn.java
 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereColumn.java
index 9eebe016709..20e28917406 100644
--- 
a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereColumn.java
+++ 
b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/schema/model/ShardingSphereColumn.java
@@ -47,13 +47,7 @@ public final class ShardingSphereColumn {
     private final boolean nullable;
     
     public ShardingSphereColumn(final ColumnMetaData columnMetaData) {
-        name = columnMetaData.getName();
-        dataType = columnMetaData.getDataType();
-        primaryKey = columnMetaData.isPrimaryKey();
-        generated = columnMetaData.isGenerated();
-        caseSensitive = columnMetaData.isCaseSensitive();
-        visible = columnMetaData.isVisible();
-        unsigned = columnMetaData.isUnsigned();
-        nullable = columnMetaData.isNullable();
+        this(columnMetaData.getName(), columnMetaData.getDataType(), 
columnMetaData.isPrimaryKey(), columnMetaData.isGenerated(),
+                columnMetaData.isCaseSensitive(), columnMetaData.isVisible(), 
columnMetaData.isUnsigned(), columnMetaData.isNullable());
     }
 }

Reply via email to