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:
Paldiu
2020-12-25 14:46:43 -05:00
parent 210b0f8b43
commit 5c0f77c7c5
170 changed files with 3302 additions and 2383 deletions

View File

@ -7,7 +7,6 @@ import java.io.InputStreamReader;
import java.util.EnumMap;
import java.util.List;
import me.totalfreedom.totalfreedommod.FreedomService;
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
import me.totalfreedom.totalfreedommod.util.FLog;
import org.apache.commons.io.FileUtils;
import org.bukkit.configuration.InvalidConfigurationException;
@ -18,10 +17,9 @@ public class PermissionConfig extends FreedomService
public static final String PERMISSIONS_FILENAME = "permissions.yml";
//
private final EnumMap<PermissionEntry, Object> entries;
private final PermissionDefaults defaults;
public YamlConfiguration configuration;
public PermissionConfig(TotalFreedomMod plugin)
public PermissionConfig()
{
entries = new EnumMap<>(PermissionEntry.class);
@ -53,7 +51,7 @@ public class PermissionConfig extends FreedomService
FLog.severe(ex);
}
defaults = tempDefaults;
PermissionDefaults defaults = tempDefaults;
}
@Override
@ -104,7 +102,7 @@ public class PermissionConfig extends FreedomService
return new File(plugin.getDataFolder(), PERMISSIONS_FILENAME);
}
public List getList(PermissionEntry entry)
public List<?> getList(PermissionEntry entry)
{
try
{

View File

@ -1,6 +1,7 @@
package me.totalfreedom.totalfreedommod.permissions;
import java.util.List;
import java.util.Objects;
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
public enum PermissionEntry
@ -36,6 +37,6 @@ public enum PermissionEntry
private PermissionConfig getConfig()
{
return TotalFreedomMod.plugin().permissions;
return Objects.requireNonNull(TotalFreedomMod.plugin()).permissions;
}
}