From 4441e854f86817a55c2fa168adeca2d76fcd5509 Mon Sep 17 00:00:00 2001 From: Lu Date: Fri, 29 Sep 2023 21:51:49 +0800 Subject: [PATCH] fix:fix check style error --- .../dialect/MySQLShardingSphereStatisticsBuilder.java | 8 +++++++- .../MySQLInformationSchemaParameterTableCollector.java | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLShardingSphereStatisticsBuilder.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLShardingSphereStatisticsBuilder.java index a5878fd900b75..869ab756fc67e 100644 --- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLShardingSphereStatisticsBuilder.java +++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/statistics/builder/dialect/MySQLShardingSphereStatisticsBuilder.java @@ -28,8 +28,12 @@ import org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereSchema; import org.apache.shardingsphere.infra.metadata.database.schema.model.ShardingSphereTable; -import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashSet; import java.util.Map.Entry; +import java.util.Optional; +import java.util.Set; /** * ShardingSphere statistics builder for MySQL. @@ -40,7 +44,9 @@ public final class MySQLShardingSphereStatisticsBuilder implements ShardingSpher private static final Set CURRENT_SUPPORT = new HashSet<>(Arrays.asList("PARAMETERS")); private static final String SHARDING_SPHERE = "shardingsphere"; + private static final String INFORMATION_SCHEMA = "information_schema"; + private static final String CLUSTER_INFORMATION = "cluster_information"; @Override diff --git a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/collector/MySQLInformationSchemaParameterTableCollector.java b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/collector/MySQLInformationSchemaParameterTableCollector.java index 56fd9ddf178db..e86a5be4cc076 100644 --- a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/collector/MySQLInformationSchemaParameterTableCollector.java +++ b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/collector/MySQLInformationSchemaParameterTableCollector.java @@ -9,7 +9,9 @@ import org.apache.shardingsphere.proxy.backend.context.ProxyContext; import java.sql.SQLException; -import java.util.*; +import java.util.Collection; +import java.util.Map; +import java.util.Optional; /** * @author sheldon