mirror of
https://github.com/plexusorg/Plex.git
synced 2024-12-22 17:17:37 +00:00
intellij "code cleanup" just adds final everywhere
This commit is contained in:
parent
273dd8a5ef
commit
eb8571b6e9
@ -15,17 +15,17 @@ public class Config extends YamlConfiguration
|
||||
/**
|
||||
* The plugin instance
|
||||
*/
|
||||
private Plex plugin;
|
||||
private final Plex plugin;
|
||||
|
||||
/**
|
||||
* The File instance
|
||||
*/
|
||||
private File file;
|
||||
private final File file;
|
||||
|
||||
/**
|
||||
* The file name
|
||||
*/
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
/**
|
||||
* Whether new entries were added to the file automatically
|
||||
|
@ -20,7 +20,7 @@ import org.bukkit.inventory.meta.SkullMeta;
|
||||
public class PunishmentMenu extends AbstractMenu
|
||||
{
|
||||
|
||||
private List<Inventory> inventories = Lists.newArrayList();
|
||||
private final List<Inventory> inventories = Lists.newArrayList();
|
||||
|
||||
public PunishmentMenu()
|
||||
{
|
||||
|
@ -20,16 +20,16 @@ public enum Rank
|
||||
private final int level;
|
||||
|
||||
@Setter
|
||||
private String loginMessage;
|
||||
private final String loginMessage;
|
||||
|
||||
@Setter
|
||||
private String readable;
|
||||
private final String readable;
|
||||
|
||||
@Setter
|
||||
private String prefix;
|
||||
private final String prefix;
|
||||
|
||||
@Getter
|
||||
private NamedTextColor color;
|
||||
private final NamedTextColor color;
|
||||
|
||||
Rank(int level, String loginMessage, String readable, String prefix, NamedTextColor color)
|
||||
{
|
||||
|
@ -17,16 +17,16 @@ public enum Title
|
||||
private final int level;
|
||||
|
||||
@Setter
|
||||
private String loginMessage;
|
||||
private final String loginMessage;
|
||||
|
||||
@Setter
|
||||
private String readable;
|
||||
private final String readable;
|
||||
|
||||
@Setter
|
||||
private String prefix;
|
||||
private final String prefix;
|
||||
|
||||
@Getter
|
||||
private NamedTextColor color;
|
||||
private final NamedTextColor color;
|
||||
|
||||
Title(int level, String loginMessage, String readable, String prefix, NamedTextColor color)
|
||||
{
|
||||
|
@ -4,8 +4,8 @@ import dev.plex.PlexBase;
|
||||
|
||||
public abstract class AbstractService extends PlexBase implements IService
|
||||
{
|
||||
private boolean asynchronous;
|
||||
private boolean repeating;
|
||||
private final boolean asynchronous;
|
||||
private final boolean repeating;
|
||||
|
||||
public AbstractService(boolean repeating, boolean async)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ import org.bukkit.event.Listener;
|
||||
|
||||
public abstract class AbstractMenu implements Listener
|
||||
{
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
public AbstractMenu(String name)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user