This is an automated email from the ASF dual-hosted git repository. panjuan 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 a3c76d27fea Remove Maps.transformValues (#17728) a3c76d27fea is described below commit a3c76d27fea5a2cbcbc0777eb470c4ca943f8236 Author: Liang Zhang <zhangli...@apache.org> AuthorDate: Tue May 17 14:30:01 2022 +0800 Remove Maps.transformValues (#17728) --- .../java/org/apache/shardingsphere/encrypt/rule/EncryptTable.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptTable.java b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptTable.java index aad3d5eea00..785021d6015 100644 --- a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptTable.java +++ b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-core/src/main/java/org/apache/shardingsphere/encrypt/rule/EncryptTable.java @@ -19,7 +19,6 @@ package org.apache.shardingsphere.encrypt.rule; import com.google.common.base.Preconditions; import com.google.common.base.Strings; -import com.google.common.collect.Maps; import org.apache.shardingsphere.encrypt.api.config.rule.EncryptColumnRuleConfiguration; import org.apache.shardingsphere.encrypt.api.config.rule.EncryptTableRuleConfiguration; import org.apache.shardingsphere.encrypt.spi.context.EncryptColumnDataType; @@ -31,6 +30,7 @@ import java.util.Map; import java.util.Map.Entry; import java.util.Optional; import java.util.TreeMap; +import java.util.stream.Collectors; /** * Encrypt table. @@ -175,7 +175,7 @@ public final class EncryptTable { * @return logic and cipher columns */ public Map<String, String> getLogicAndCipherColumns() { - return Maps.transformValues(columns, EncryptColumn::getCipherColumn); + return columns.entrySet().stream().collect(Collectors.toMap(Entry::getKey, entry -> entry.getValue().getCipherColumn())); } /**