This is an automated email from the ASF dual-hosted git repository.
zhangliang 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 4d9cc7b3909 fix: update `AssistedEncryptAlgorithm` api in example
(#29452)
4d9cc7b3909 is described below
commit 4d9cc7b3909f48b52562fa634dc51774e851e158
Author: totalo <[email protected]>
AuthorDate: Tue Dec 19 22:30:19 2023 +0800
fix: update `AssistedEncryptAlgorithm` api in example (#29452)
---
.../java/TestQueryAssistedShardingEncryptAlgorithm.ftl | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git
a/examples/shardingsphere-jdbc-example-generator/src/main/resources/template/java/TestQueryAssistedShardingEncryptAlgorithm.ftl
b/examples/shardingsphere-jdbc-example-generator/src/main/resources/template/java/TestQueryAssistedShardingEncryptAlgorithm.ftl
index e094e78abc2..24bad41c06a 100644
---
a/examples/shardingsphere-jdbc-example-generator/src/main/resources/template/java/TestQueryAssistedShardingEncryptAlgorithm.ftl
+++
b/examples/shardingsphere-jdbc-example-generator/src/main/resources/template/java/TestQueryAssistedShardingEncryptAlgorithm.ftl
@@ -25,10 +25,16 @@ import
org.apache.shardingsphere.encrypt.api.encrypt.assisted.AssistedEncryptAlg
import java.util.Properties;
-public final class TestQueryAssistedShardingEncryptAlgorithm implements
AssistedEncryptAlgorithm<Object, String> {
+@SuppressWarnings("LombokGetterMayBeUsed")
+public final class TestQueryAssistedShardingEncryptAlgorithm implements
AssistedEncryptAlgorithm {
@Getter
- private Properties props;
+ private Properties properties;
+
+ @Override
+ public void init(final Properties props) {
+ this.properties = props;
+ }
@Override
public String encrypt(final Object plainValue, final EncryptContext
encryptContext) {
@@ -39,9 +45,4 @@ public final class TestQueryAssistedShardingEncryptAlgorithm
implements Assisted
public String getType() {
return "assistedTest";
}
-
- @Override
- public void init(Properties props) {
- this.props = props;
- }
}