From 4ff4271da2919484ad428b29faf53d4d5b5bdc77 Mon Sep 17 00:00:00 2001 From: GJ Date: Thu, 6 Jun 2013 18:01:43 -0400 Subject: [PATCH] These should be protected. --- .../com/gmail/nossr50/database/FlatfileDatabaseManager.java | 2 +- .../java/com/gmail/nossr50/database/SQLDatabaseManager.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java index c6e202046..d4208b08a 100644 --- a/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/FlatfileDatabaseManager.java @@ -35,7 +35,7 @@ public final class FlatfileDatabaseManager implements DatabaseManager { private final long UPDATE_WAIT_TIME = 600000L; // 10 minutes private final File usersFile; - public FlatfileDatabaseManager() { + protected FlatfileDatabaseManager() { usersFile = new File(mcMMO.getUsersFilePath()); createDatabase(); updateLeaderboards(); diff --git a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java index b26d0e21c..d5a59cdbf 100644 --- a/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java +++ b/src/main/java/com/gmail/nossr50/database/SQLDatabaseManager.java @@ -48,7 +48,7 @@ public final class SQLDatabaseManager implements DatabaseManager { // How many connection attempts have failed private int reconnectAttempt = 0; - public SQLDatabaseManager() { + protected SQLDatabaseManager() { checkConnected(); createStructure(); }