mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-03 13:06:42 +00:00
Removal of Lombok
Lombok implementation removal. I have also gone through and replaced things with inline methods and variables, lambdas, and simplified loops down, removed unnecessary guard clauses, and overall cleaned up every single class. This took a long time, please do remember to follow proper naming conventions, don't include unnecessary guard clauses, follow exception rules and comment rules, and please PLEASE remember to use the DIAMOND OPERATOR rather than just inferring RAW TYPES!!! Thank you!!
This commit is contained in:
@ -22,18 +22,6 @@ public class MainConfig extends FreedomService
|
||||
private final ConfigDefaults defaults;
|
||||
public YamlConfiguration configuration;
|
||||
|
||||
@Override
|
||||
public void onStart()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public MainConfig()
|
||||
{
|
||||
entries = new EnumMap<>(ConfigEntry.class);
|
||||
@ -69,6 +57,18 @@ public class MainConfig extends FreedomService
|
||||
defaults = tempDefaults;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void load()
|
||||
{
|
||||
try
|
||||
@ -212,7 +212,7 @@ public class MainConfig extends FreedomService
|
||||
}
|
||||
}
|
||||
|
||||
public List getList(ConfigEntry entry)
|
||||
public List<?> getList(ConfigEntry entry)
|
||||
{
|
||||
try
|
||||
{
|
||||
@ -297,11 +297,7 @@ public class MainConfig extends FreedomService
|
||||
defaults.load(isr);
|
||||
isr.close();
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
FLog.severe(ex);
|
||||
}
|
||||
catch (InvalidConfigurationException ex)
|
||||
catch (IOException | InvalidConfigurationException ex)
|
||||
{
|
||||
FLog.severe(ex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user