This is an automated email from the ASF dual-hosted git repository.
duanzhengqiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 332cb7d9c12 fix the mask example error (#23282)
332cb7d9c12 is described below
commit 332cb7d9c1247f058cb7f2520cb6a065f83b4bea
Author: Guocheng Tang <[email protected]>
AuthorDate: Tue Jan 3 13:06:10 2023 +0800
fix the mask example error (#23282)
---
.../src/main/resources/template/jdbc/java/config/mask.ftl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/mask.ftl
b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/mask.ftl
index ac7af0a18ec..b155987162e 100644
---
a/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/mask.ftl
+++
b/examples/shardingsphere-example-generator/src/main/resources/template/jdbc/java/config/mask.ftl
@@ -20,7 +20,7 @@
}
private Collection<MaskTableRuleConfiguration>
createMaskTableRuleConfiguration() {
- Collection<MaskTableRuleConfiguration> result = new ArrayList<>();
+ Collection<MaskTableRuleConfiguration> result = new LinkedList<>();
result.add(new MaskTableRuleConfiguration("t_order_item",
Collections.singletonList(new MaskColumnRuleConfiguration("phone",
"keep_first_n_last_m_mask"))));
return result;
}