From 58a15e61dd80a963878382f87bd2b77cc8c1ac06 Mon Sep 17 00:00:00 2001 From: Marco Cunha Date: Mon, 22 Oct 2012 19:05:13 +0200 Subject: [PATCH] Fix refactoring typos --- src/main/java/com/gmail/nossr50/runnables/SQLReconnect.java | 2 +- src/main/java/com/gmail/nossr50/util/Database.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/runnables/SQLReconnect.java b/src/main/java/com/gmail/nossr50/runnables/SQLReconnect.java index f84feadd7..4c52985bf 100644 --- a/src/main/java/com/gmail/nossr50/runnables/SQLReconnect.java +++ b/src/main/java/com/gmail/nossr50/runnables/SQLReconnect.java @@ -15,7 +15,7 @@ public class SQLReconnect implements Runnable { @Override public void run() { - if (Database.checkConnection()) { + if (Database.checkConnected()) { Users.saveAll(); //Save all profiles Users.clearAll(); //Clear the profiles diff --git a/src/main/java/com/gmail/nossr50/util/Database.java b/src/main/java/com/gmail/nossr50/util/Database.java index 6bfab97cf..7e314e4a5 100644 --- a/src/main/java/com/gmail/nossr50/util/Database.java +++ b/src/main/java/com/gmail/nossr50/util/Database.java @@ -225,7 +225,7 @@ public class Database { try { statement.close(); } catch (SQLException e) { - printErrors(ex); + printErrors(e); return false; } }