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 459e616231f Fix sonar issue on TableRefreshUtils (#28034)
459e616231f is described below

commit 459e616231ff123ddf333bc391eb49faffa14553
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Aug 11 10:48:47 2023 +0800

    Fix sonar issue on TableRefreshUtils (#28034)
---
 .../infra/connection/refresher/util/TableRefreshUtils.java           | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/infra/context/src/main/java/org/apache/shardingsphere/infra/connection/refresher/util/TableRefreshUtils.java
 
b/infra/context/src/main/java/org/apache/shardingsphere/infra/connection/refresher/util/TableRefreshUtils.java
index d3e75bfced0..50546190939 100644
--- 
a/infra/context/src/main/java/org/apache/shardingsphere/infra/connection/refresher/util/TableRefreshUtils.java
+++ 
b/infra/context/src/main/java/org/apache/shardingsphere/infra/connection/refresher/util/TableRefreshUtils.java
@@ -51,10 +51,7 @@ public final class TableRefreshUtils {
      * @return table name
      */
     public static String getTableName(final DatabaseType databaseType, final 
IdentifierValue identifierValue) {
-        if (databaseType instanceof OracleDatabaseType && 
identifierValue.getQuoteCharacter().equals(QuoteCharacter.NONE)) {
-            return identifierValue.getValue().toUpperCase();
-        }
-        return identifierValue.getValue();
+        return databaseType instanceof OracleDatabaseType && 
QuoteCharacter.NONE == identifierValue.getQuoteCharacter() ? 
identifierValue.getValue().toUpperCase() : identifierValue.getValue();
     }
     
     /**

Reply via email to