Add missing endTransactions

Rename usingHTTPS() to isUsingHTTPS()
This commit is contained in:
Fuzzlemann 2017-08-23 14:25:50 +02:00
parent 8bffdba725
commit 7587792c73
5 changed files with 10 additions and 2 deletions

View File

@ -56,6 +56,11 @@ public abstract class UserIDTable extends Table {
Log.toLog(this.getClass().getName(), ex);
return false;
} finally {
try {
endTransaction(statement);
} catch (SQLException e) {
Log.toLog(this.getClass().getName(), e);
}
close(statement);
}
}

View File

@ -169,6 +169,7 @@ public class UsersTable extends UserIDTable {
statement.setString(3, name);
statement.execute();
} finally {
endTransaction(statement);
close(statement);
}
}
@ -233,6 +234,7 @@ public class UsersTable extends UserIDTable {
statement.setString(2, uuid.toString());
statement.execute();
} finally {
endTransaction(statement);
close(statement);
}
}

View File

@ -544,7 +544,7 @@ public class WebServer {
return usingHttps ? "https" : "http";
}
public boolean usingHttps() {
public boolean isUsingHTTPS() {
return usingHttps;
}

View File

@ -7,6 +7,7 @@ import main.java.com.djrapitops.plan.data.UserData;
/**
* @author Rsl1122
* @deprecated Will be removed once it's sure that it's unnecessary
*/
@Deprecated // TODO Remove once sure that this is unnecessary.
public class NewPlayerCreator {

View File

@ -198,7 +198,7 @@ public class DumpUtils {
* @param plan The Plan instance
*/
private static void addConfigurationDetails(DumpLog log, Plan plan) {
boolean usingHTTPS = plan.getUiServer().usingHttps();
boolean usingHTTPS = plan.getUiServer().isUsingHTTPS();
boolean analysisExport = Settings.ANALYSIS_EXPORT.isTrue();
boolean usingAlternativeServerIP = Settings.SHOW_ALTERNATIVE_IP.isTrue();