mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 03:27:37 +01:00
Add missing endTransactions
Rename usingHTTPS() to isUsingHTTPS()
This commit is contained in:
parent
8bffdba725
commit
7587792c73
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -544,7 +544,7 @@ public class WebServer {
|
||||
return usingHttps ? "https" : "http";
|
||||
}
|
||||
|
||||
public boolean usingHttps() {
|
||||
public boolean isUsingHTTPS() {
|
||||
return usingHttps;
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user