代码质量相关
@ -45,6 +45,10 @@ public class TableDataPreviewDesensitizeManager implements DesensitizationManage
private static final TableDataPreviewDesensitizeManager INSTANCE = new TableDataPreviewDesensitizeManager();
}
/**
* 获取TableDataPreviewDesensitizeManager单例
* @return
*/
public static TableDataPreviewDesensitizeManager getInstance() {
return TableDataPreviewDesensitizeManager.Holder.INSTANCE;
@ -60,6 +60,10 @@ public class DesensitizationRuleChoosePane extends JPanel {
switchPaneByRuleSource(DesensitizationRuleSource.SERVER);
* 通过脱敏规则来源,切换显示不同的脱敏规则Table面板
* @param ruleSource
public void switchPaneByRuleSource(DesensitizationRuleSource ruleSource) {
this.currentRuleSource = ruleSource;
this.cardLayout.show(this, ruleSource.name());