Skip to content

Commit

Permalink
code format
Browse files Browse the repository at this point in the history
  • Loading branch information
aiceflower committed Nov 28, 2023
1 parent 1c4f5d3 commit a58a0b3
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -46,7 +45,7 @@ public class SqlConnection extends AbstractSqlConnection {

/** clientRerouteServerListJNDIName */
private static final CommonVars<String> DB2_SENSITIVE_PARAMS =
CommonVars.apply("linkis.db2.sensitive.params", "clientRerouteServerListJNDIName");
CommonVars.apply("linkis.db2.sensitive.params", "clientRerouteServerListJNDIName");

public SqlConnection(
String host,
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a58a0b3

Please sign in to comment.