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
|
* The plugin instance
|
||||||
*/
|
*/
|
||||||
private Plex plugin;
|
private final Plex plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The File instance
|
* The File instance
|
||||||
*/
|
*/
|
||||||
private File file;
|
private final File file;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The file name
|
* The file name
|
||||||
*/
|
*/
|
||||||
private String name;
|
private final String name;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Whether new entries were added to the file automatically
|
* Whether new entries were added to the file automatically
|
||||||
|
@ -20,7 +20,7 @@ import org.bukkit.inventory.meta.SkullMeta;
|
|||||||
public class PunishmentMenu extends AbstractMenu
|
public class PunishmentMenu extends AbstractMenu
|
||||||
{
|
{
|
||||||
|
|
||||||
private List<Inventory> inventories = Lists.newArrayList();
|
private final List<Inventory> inventories = Lists.newArrayList();
|
||||||
|
|
||||||
public PunishmentMenu()
|
public PunishmentMenu()
|
||||||
{
|
{
|
||||||
|
@ -20,16 +20,16 @@ public enum Rank
|
|||||||
private final int level;
|
private final int level;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String loginMessage;
|
private final String loginMessage;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String readable;
|
private final String readable;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String prefix;
|
private final String prefix;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private NamedTextColor color;
|
private final NamedTextColor color;
|
||||||
|
|
||||||
Rank(int level, String loginMessage, String readable, String prefix, NamedTextColor color)
|
Rank(int level, String loginMessage, String readable, String prefix, NamedTextColor color)
|
||||||
{
|
{
|
||||||
|
@ -17,16 +17,16 @@ public enum Title
|
|||||||
private final int level;
|
private final int level;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String loginMessage;
|
private final String loginMessage;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String readable;
|
private final String readable;
|
||||||
|
|
||||||
@Setter
|
@Setter
|
||||||
private String prefix;
|
private final String prefix;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
private NamedTextColor color;
|
private final NamedTextColor color;
|
||||||
|
|
||||||
Title(int level, String loginMessage, String readable, String prefix, 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
|
public abstract class AbstractService extends PlexBase implements IService
|
||||||
{
|
{
|
||||||
private boolean asynchronous;
|
private final boolean asynchronous;
|
||||||
private boolean repeating;
|
private final boolean repeating;
|
||||||
|
|
||||||
public AbstractService(boolean repeating, boolean async)
|
public AbstractService(boolean repeating, boolean async)
|
||||||
{
|
{
|
||||||
|
@ -5,7 +5,7 @@ import org.bukkit.event.Listener;
|
|||||||
|
|
||||||
public abstract class AbstractMenu implements Listener
|
public abstract class AbstractMenu implements Listener
|
||||||
{
|
{
|
||||||
private String name;
|
private final String name;
|
||||||
|
|
||||||
public AbstractMenu(String name)
|
public AbstractMenu(String name)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user