Skip to content

Commit 90c3343

Browse files
authored
去除私有构造函数
使用datasource连接时,会通过driverClass.newInstance()来初始化,如果构造方法私有会导致报错。
1 parent c75bee0 commit 90c3343

File tree

1 file changed

+0
-2
lines changed
  • elasticsearch-sql-jdbc/src/main/java/io/github/iamazy/elasticsearch/dsl/jdbc

1 file changed

+0
-2
lines changed

elasticsearch-sql-jdbc/src/main/java/io/github/iamazy/elasticsearch/dsl/jdbc/ElasticDriver.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public class ElasticDriver implements Driver {
3232
private RestHighLevelClient restHighLevelClient;
3333
private ElasticClientProvider elasticClientProvider;
3434

35-
private ElasticDriver() {
36-
}
3735

3836
@Override
3937
public Connection connect(String url, Properties info) throws SQLException {

0 commit comments

Comments
 (0)