From fc5eea28e0b07083f6eab6085e8099fb4147e06a Mon Sep 17 00:00:00 2001 From: ASangarin Date: Wed, 16 Sep 2020 15:51:41 +0200 Subject: [PATCH] !Removed unnecessary line --- .../Indyuce/mmocore/manager/data/mysql/MySQLDataProvider.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MySQLDataProvider.java b/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MySQLDataProvider.java index b4fe09eb..62cb63c8 100644 --- a/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MySQLDataProvider.java +++ b/src/main/java/net/Indyuce/mmocore/manager/data/mysql/MySQLDataProvider.java @@ -29,9 +29,8 @@ public class MySQLDataProvider implements DataProvider { private void initialize() { try { - Class.forName("com.mysql.jdbc.Driver"); connection = DriverManager.getConnection(config.getConnectionString(), config.getUser(), config.getPassword()); - } catch (ClassNotFoundException | SQLException exception) { + } catch (SQLException exception) { throw new IllegalArgumentException("Could not initialize MySQL support: " + exception.getMessage()); } }