Skip to content

Commit

Permalink
fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Aug 27, 2021
1 parent dbe854b commit 4c1a1d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/erudika/para/persistence/H2Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ protected static void shutdownClient() {
if (server != null) {
server.stop();
server = null;
org.h2.Driver.unload();
}
org.h2.Driver.unload();
}


Expand Down
11 changes: 0 additions & 11 deletions src/main/java/com/erudika/para/persistence/SqlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.slf4j.LoggerFactory;

import java.sql.Connection;
import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
Expand All @@ -44,7 +43,6 @@
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
import java.util.Enumeration;
import java.util.LinkedHashMap;
import java.util.Map;

Expand Down Expand Up @@ -139,15 +137,6 @@ protected static void shutdownClient() {
hikariDataSource.close();
hikariDataSource = null;
}
Enumeration<Driver> drivers = DriverManager.getDrivers();
while (drivers.hasMoreElements()) {
Driver driver = drivers.nextElement();
try {
DriverManager.deregisterDriver(driver);
} catch (SQLException e) {
logger.error(null, e);
}
}
}

private static String getTableSchema() {
Expand Down

0 comments on commit 4c1a1d8

Please sign in to comment.