terrymanu commented on code in PR #18720:
URL: https://github.com/apache/shardingsphere/pull/18720#discussion_r910635476
##########
shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-api/src/main/java/org/apache/shardingsphere/sharding/api/config/strategy/audit/ShardingAuditStrategyConfiguration.java:
##########
@@ -18,21 +18,23 @@
package org.apache.shardingsphere.sharding.api.config.strategy.audit;
import com.google.common.base.Preconditions;
+import java.util.Collection;
import lombok.Getter;
/**
* Sharding audit strategy configuration.
*/
+
@Getter
public final class ShardingAuditStrategyConfiguration {
- private final String auditAlgorithmName;
+ private final Collection<String> auditAlgorithmNames;
private final boolean allowHintDisable;
- public ShardingAuditStrategyConfiguration(final String auditAlgorithmName,
final boolean allowHintDisable) {
- Preconditions.checkNotNull(auditAlgorithmName, "Sharding audit
algorithm name is required.");
- this.auditAlgorithmName = auditAlgorithmName;
+ public ShardingAuditStrategyConfiguration(final Collection<String>
auditAlgorithmNames, final boolean allowHintDisable) {
+ Preconditions.checkNotNull(auditAlgorithmNames, "Sharding audit
algorithm names is required.");
Review Comment:
It is better to check collection empty
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]