From 96f54c2949ee1521b1205f94da3e3699b66e84ca Mon Sep 17 00:00:00 2001 From: CoderTim Date: Fri, 7 Nov 2014 18:27:20 -0500 Subject: [PATCH] Made DBPool class uninstantiatable --- .../Mineplex.Core/src/mineplex/core/database/DBPool.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/database/DBPool.java b/Plugins/Mineplex.Core/src/mineplex/core/database/DBPool.java index 93274675e..3cd2c9aa0 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/database/DBPool.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/database/DBPool.java @@ -5,7 +5,7 @@ import java.sql.Connection; import org.apache.commons.dbcp2.BasicDataSource; -public class DBPool +public final class DBPool { public static final DataSource ACCOUNT = openDataSource("jdbc:mysql://db.mineplex.com/Account", "root", "tAbechAk3wR7tuTh"); public static final DataSource QUEUE = openDataSource("jdbc:mysql://db.mineplex.com/Queue", "root", "tAbechAk3wR7tuTh"); @@ -30,4 +30,9 @@ public class DBPool return source; } + + private DBPool() + { + + } }