From c4d65c21d21e26d3629b249ce696cc42f7d2a7f5 Mon Sep 17 00:00:00 2001 From: Nathan Curran <30569566+Focusvity@users.noreply.github.com> Date: Sun, 11 Apr 2021 00:03:44 +1000 Subject: [PATCH] Fix Codacy issues --- src/main/java/me/totalfreedom/tfguilds/TFGuilds.java | 10 +++++----- .../java/me/totalfreedom/tfguilds/sql/SQLDatabase.java | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java b/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java index 71d9793..c68d26b 100644 --- a/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java +++ b/src/main/java/me/totalfreedom/tfguilds/TFGuilds.java @@ -24,6 +24,11 @@ import org.bukkit.plugin.java.JavaPlugin; public final class TFGuilds extends JavaPlugin { + + // TEMP FIX UNTIL REWRITE + public Map guilds; + public Map warps; + private static TFGuilds plugin; public static TFGuilds getPlugin() @@ -40,11 +45,6 @@ public final class TFGuilds extends JavaPlugin public SQLWarpData warpData; public SQLWorldData worldData; - - // TEMP FIX UNTIL REWRITE - public Map guilds; - public Map warps; - @Override public void onEnable() { diff --git a/src/main/java/me/totalfreedom/tfguilds/sql/SQLDatabase.java b/src/main/java/me/totalfreedom/tfguilds/sql/SQLDatabase.java index 6743a19..0926641 100644 --- a/src/main/java/me/totalfreedom/tfguilds/sql/SQLDatabase.java +++ b/src/main/java/me/totalfreedom/tfguilds/sql/SQLDatabase.java @@ -10,7 +10,6 @@ import me.totalfreedom.tfguilds.TFGuilds; public class SQLDatabase { private static final String DATABASE_FILENAME = "database.db"; - private final File FILE; private Connection connection; public SQLDatabase() @@ -28,7 +27,6 @@ public class SQLDatabase ex.printStackTrace(); } } - this.FILE = file; try { connection = DriverManager.getConnection("jdbc:sqlite:" + file.getAbsolutePath());