From a58a0b32cbb10604896396596664da5a6d986349 Mon Sep 17 00:00:00 2001 From: aiceflower Date: Tue, 28 Nov 2023 23:06:36 +0800 Subject: [PATCH] code format --- .../linkis/metadata/query/service/db2/SqlConnection.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/db2/SqlConnection.java b/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/db2/SqlConnection.java index aa4c406607..09201d58d8 100644 --- a/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/db2/SqlConnection.java +++ b/linkis-public-enhancements/linkis-datasource/linkis-metadata-query/service/jdbc/src/main/java/org/apache/linkis/metadata/query/service/db2/SqlConnection.java @@ -18,7 +18,6 @@ package org.apache.linkis.metadata.query.service.db2; import org.apache.linkis.common.conf.CommonVars; -import org.apache.linkis.common.conf.CommonVars$; import org.apache.linkis.common.exception.LinkisSecurityException; import org.apache.linkis.metadata.query.service.AbstractSqlConnection; @@ -46,7 +45,7 @@ public class SqlConnection extends AbstractSqlConnection { /** clientRerouteServerListJNDIName */ private static final CommonVars DB2_SENSITIVE_PARAMS = - CommonVars.apply("linkis.db2.sensitive.params", "clientRerouteServerListJNDIName"); + CommonVars.apply("linkis.db2.sensitive.params", "clientRerouteServerListJNDIName"); public SqlConnection( String host, @@ -121,7 +120,7 @@ public Connection getDBConnection(ConnectMessage connectMessage, String database .collect(Collectors.joining("&")); url += "?" + extraParamString; } - if (url.toLowerCase().contains(DB2_SENSITIVE_PARAMS.getValue().toLowerCase())){ + if (url.toLowerCase().contains(DB2_SENSITIVE_PARAMS.getValue().toLowerCase())) { throw new LinkisSecurityException(35000, "Invalid db2 connection params."); } return DriverManager.getConnection(url, connectMessage.username, connectMessage.password);