intellij "code cleanup" just adds final everywhere

This commit is contained in:
Telesphoreo 2022-03-25 00:52:06 -05:00
parent 273dd8a5ef
commit eb8571b6e9
6 changed files with 15 additions and 15 deletions

View File

@ -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

View File

@ -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()
{ {

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -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)
{ {