From e87a23362d0d09105ccc50a9a9929fcef00a4d15 Mon Sep 17 00:00:00 2001 From: Liang Zhang Date: Mon, 4 Nov 2024 20:48:48 +0800 Subject: [PATCH] Remove useless setter on shadow config (#33543) * Remove useless setter on shadow config * Remove useless setter on shadow config --- .../shadow/config/datasource/ShadowDataSourceConfiguration.java | 2 -- .../shadow/config/table/ShadowTableConfiguration.java | 2 -- 2 files changed, 4 deletions(-) diff --git a/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/datasource/ShadowDataSourceConfiguration.java b/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/datasource/ShadowDataSourceConfiguration.java index 41611c5491b47..7dfc92979fb7d 100644 --- a/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/datasource/ShadowDataSourceConfiguration.java +++ b/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/datasource/ShadowDataSourceConfiguration.java @@ -19,14 +19,12 @@ import lombok.Getter; import lombok.RequiredArgsConstructor; -import lombok.Setter; /** * Shadow data source mapper configuration. */ @RequiredArgsConstructor @Getter -@Setter public final class ShadowDataSourceConfiguration { private final String name; diff --git a/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/table/ShadowTableConfiguration.java b/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/table/ShadowTableConfiguration.java index 7433815f24197..7ebf42f2d752a 100644 --- a/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/table/ShadowTableConfiguration.java +++ b/features/shadow/api/src/main/java/org/apache/shardingsphere/shadow/config/table/ShadowTableConfiguration.java @@ -19,7 +19,6 @@ import lombok.Getter; import lombok.RequiredArgsConstructor; -import lombok.Setter; import java.util.Collection; @@ -28,7 +27,6 @@ */ @RequiredArgsConstructor @Getter -@Setter public final class ShadowTableConfiguration { private final Collection dataSourceNames;