You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2022/05/23 11:54:54 UTC

[shardingsphere] branch master updated: Remove unnecessary parentheses around expression. (#17881)

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 c78caa1494e Remove unnecessary parentheses around expression. (#17881)
c78caa1494e is described below

commit c78caa1494eeb02312790c7c58449de3b9a5c978
Author: zhaojinchao <zh...@apache.org>
AuthorDate: Mon May 23 19:54:48 2022 +0800

    Remove unnecessary parentheses around expression. (#17881)
---
 .../backend/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java
index 692e45794bc..b6a79c7bfee 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java
+++ b/shardingsphere-proxy/shardingsphere-proxy-backend/src/test/java/org/apache/shardingsphere/proxy/backend/config/yaml/swapper/YamlProxyConfigurationSwapperTest.java
@@ -97,7 +97,7 @@ public final class YamlProxyConfigurationSwapperTest {
     }
     
     private Optional<AuthorityRuleConfiguration> findAuthorityRuleConfiguration(final Collection<RuleConfiguration> globalRuleConfigs) {
-        return globalRuleConfigs.stream().filter(each -> each instanceof AuthorityRuleConfiguration).findFirst().map(each -> ((AuthorityRuleConfiguration) each));
+        return globalRuleConfigs.stream().filter(each -> each instanceof AuthorityRuleConfiguration).findFirst().map(each -> (AuthorityRuleConfiguration) each);
     }
     
     private void assertProxyConfigurationProps(final ProxyConfiguration proxyConfig) {