Pace2Car commented on code in PR #25041:
URL: https://github.com/apache/shardingsphere/pull/25041#discussion_r1189585431


##########
features/mask/core/src/main/java/org/apache/shardingsphere/mask/algorithm/replace/PersonalIdentityNumberRandomReplaceAlgorithm.java:
##########
@@ -37,6 +38,7 @@ public final class 
PersonalIdentityNumberRandomReplaceAlgorithm implements MaskA
     
     @Override
     public void init(final Properties props) {
+        MaskAlgorithmPropsChecker.checkAtLeastOneCharConfig(props, 
ALPHA_TWO_COUNTRY_AREA_CODE, getType());

Review Comment:
   Unnecessary check here, verify the `alphaTwoCountryAreaCode` is not empty 
after getProperty.



-- 
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]

Reply via email to