Fix Codacy issues

This commit is contained in:
Nathan Curran 2021-04-11 00:03:44 +10:00
parent 9d58522fc6
commit c4d65c21d2
No known key found for this signature in database
GPG key ID: B3A964B30C2E56B8
2 changed files with 5 additions and 7 deletions

View file

@ -24,6 +24,11 @@ import org.bukkit.plugin.java.JavaPlugin;
public final class TFGuilds extends JavaPlugin
{
// TEMP FIX UNTIL REWRITE
public Map<String, Guild> guilds;
public Map<String, GuildWarp> 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<String, Guild> guilds;
public Map<String, GuildWarp> warps;
@Override
public void onEnable()
{

View file

@ -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());