Skip to content

Commit

Permalink
Refactor YamlBroadcastRuleConfigurationSwapper (#30247)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Feb 22, 2024
1 parent de192a3 commit db55939
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
import org.apache.shardingsphere.broadcast.yaml.config.YamlBroadcastRuleConfiguration;
import org.apache.shardingsphere.infra.yaml.config.swapper.rule.YamlRuleConfigurationSwapper;

import java.util.Collection;
import java.util.LinkedList;

/**
* YAML broadcast rule configuration swapper.
*/
Expand All @@ -39,8 +36,7 @@ public YamlBroadcastRuleConfiguration swapToYamlConfiguration(final BroadcastRul

@Override
public BroadcastRuleConfiguration swapToObject(final YamlBroadcastRuleConfiguration yamlConfig) {
Collection<String> tables = new LinkedList<>(yamlConfig.getTables());
return new BroadcastRuleConfiguration(tables);
return new BroadcastRuleConfiguration(yamlConfig.getTables());
}

@Override
Expand Down

0 comments on commit db55939

Please sign in to comment.