From 2356fda67a652402c9d3c9a32ed749b3bfbad7d2 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sun, 27 Jan 2013 00:02:01 +0100 Subject: [PATCH] Minor cleanup --- src/main/java/com/gmail/nossr50/database/Database.java | 8 ++++++-- src/main/java/com/gmail/nossr50/skills/Combat.java | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/database/Database.java b/src/main/java/com/gmail/nossr50/database/Database.java index 7d028873d..966573e5d 100644 --- a/src/main/java/com/gmail/nossr50/database/Database.java +++ b/src/main/java/com/gmail/nossr50/database/Database.java @@ -71,10 +71,14 @@ public final class Database { mcMMO.p.getLogger().info("Connection to MySQL was a success!"); } catch (SQLException ex) { connection = null; - if (reconnectAttempt == 0 || reconnectAttempt >= 11) mcMMO.p.getLogger().info("Connection to MySQL failed!"); + if (reconnectAttempt == 0 || reconnectAttempt >= 11) { + mcMMO.p.getLogger().info("Connection to MySQL failed!"); + } } catch (ClassNotFoundException ex) { connection = null; - if (reconnectAttempt == 0 || reconnectAttempt >= 11) mcMMO.p.getLogger().info("MySQL database driver not found!"); + if (reconnectAttempt == 0 || reconnectAttempt >= 11) { + mcMMO.p.getLogger().info("MySQL database driver not found!"); + } } } diff --git a/src/main/java/com/gmail/nossr50/skills/Combat.java b/src/main/java/com/gmail/nossr50/skills/Combat.java index e35d44498..86f07c815 100644 --- a/src/main/java/com/gmail/nossr50/skills/Combat.java +++ b/src/main/java/com/gmail/nossr50/skills/Combat.java @@ -48,7 +48,7 @@ import com.gmail.nossr50.util.Users; public final class Combat { private static Config configInstance = Config.getInstance(); - private Combat() {}; + private Combat() {} /** * Apply combat modifiers and process and XP gain.