mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-16 06:12:52 -04:00
Fixed warnings in ProjectSWG
This commit is contained in:
@@ -104,6 +104,7 @@ public class ProjectSWG {
|
||||
|
||||
private static void startupStaticClasses() {
|
||||
IntentManager.setInstance(new IntentManager(Runtime.getRuntime().availableProcessors()));
|
||||
assert IntentManager.getInstance() != null;
|
||||
IntentManager.getInstance().initialize();
|
||||
DataManager.initialize();
|
||||
Thread.currentThread().setPriority(10);
|
||||
@@ -111,12 +112,14 @@ public class ProjectSWG {
|
||||
}
|
||||
|
||||
private static void shutdownStaticClasses() {
|
||||
assert IntentManager.getInstance() != null;
|
||||
DataManager.terminate();
|
||||
IntentManager.getInstance().terminate();
|
||||
ScheduledUtilities.shutdown();
|
||||
}
|
||||
|
||||
private static void printFinalPswgState() {
|
||||
assert IntentManager.getInstance() != null;
|
||||
ThreadUtilities.printActiveThreads();
|
||||
List<IntentSpeedRecord> intentTimes = IntentManager.getInstance().getSpeedRecorder().getAllTimes();
|
||||
Collections.sort(intentTimes);
|
||||
|
||||
Reference in New Issue
Block a user