You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2023/05/18 05:56:01 UTC

[shardingsphere] branch master updated: Fix sonar issue of MySQLInformationSchemaExecutorFactory (#25759)

This is an automated email from the ASF dual-hosted git repository.

sunnianjun 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 14f8498a165 Fix sonar issue of MySQLInformationSchemaExecutorFactory (#25759)
14f8498a165 is described below

commit 14f8498a1654ed8f22b33ab0aebfd12f013c52f6
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Thu May 18 13:55:54 2023 +0800

    Fix sonar issue of MySQLInformationSchemaExecutorFactory (#25759)
---
 .../mysql/handler/admin/MySQLInformationSchemaExecutorFactory.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLInformationSchemaExecutorFactory.java b/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLInformationSchemaExecutorFactory.java
index 1e6505e407f..c0b7436baa2 100644
--- a/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLInformationSchemaExecutorFactory.java
+++ b/proxy/backend/type/mysql/src/main/java/org/apache/shardingsphere/proxy/backend/mysql/handler/admin/MySQLInformationSchemaExecutorFactory.java
@@ -37,9 +37,9 @@ import java.util.Optional;
 @NoArgsConstructor(access = AccessLevel.PRIVATE)
 public final class MySQLInformationSchemaExecutorFactory {
     
-    public static final String SCHEMATA_TABLE = "SCHEMATA";
+    private static final String SCHEMATA_TABLE = "SCHEMATA";
     
-    public static final Collection<String> DEFAULT_EXECUTOR_TABLES = new HashSet<>(Arrays.asList("ENGINES", "FILES", "VIEWS", "TRIGGERS", "PARTITIONS"));
+    private static final Collection<String> DEFAULT_EXECUTOR_TABLES = new HashSet<>(Arrays.asList("ENGINES", "FILES", "VIEWS", "TRIGGERS", "PARTITIONS"));
     
     /**
      * Create executor.