Remove manual class preloads in MySQLUserManager.Factory

This commit is contained in:
Jason Penilla committed 2023-06-22 16:17:32 -07:00
1 parent 00945e5c8d
commit 543231961c
1 file changed
-7
@@ -148,13 +148,6 @@ public final class MySQLUserManager extends DatabaseUserManager {
}
public MySQLUserManager create() {
try {
Class.forName("org.mariadb.jdbc.Driver");
Class.forName("com.mysql.cj.jdbc.Driver"); // Manually loading this might not be necessary
} catch (final ClassNotFoundException exception) {
throw new RuntimeException("Could not find required class", exception);
}
final HikariConfig hikariConfig = new HikariConfig();
hikariConfig.setMaximumPoolSize(20);
hikariConfig.setJdbcUrl(this.databaseSettings.url());