Pace2Car commented on code in PR #25041:
URL: https://github.com/apache/shardingsphere/pull/25041#discussion_r1186987554
##########
features/mask/core/src/main/java/org/apache/shardingsphere/mask/algorithm/cover/MaskBeforeSpecialCharsAlgorithm.java:
##########
@@ -43,13 +43,18 @@ public void init(final Properties props) {
}
private String createSpecialChars(final Properties props) {
+ String specialChars = props.getProperty(SPECIAL_CHARS);
+ MaskAlgorithmPropsChecker.checkRequiredPropertyConfig(props,
SPECIAL_CHARS, getType());
MaskAlgorithmPropsChecker.checkAtLeastOneCharConfig(props,
SPECIAL_CHARS, getType());
- return props.getProperty(SPECIAL_CHARS);
+ return specialChars;
}
private Character createReplaceChar(final Properties props) {
+ final String replaceCharStr = props.getProperty(REPLACE_CHAR);
Review Comment:
Unnecessary check, just keep it as it is
--
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]