pvptools: Final fields

This commit is contained in:
sdburns1998
2019-07-07 18:00:14 +02:00
parent 815248b75a
commit 85264649db
4 changed files with 15 additions and 15 deletions

View File

@@ -32,7 +32,7 @@ import org.apache.commons.lang3.ArrayUtils;
@Singleton
public class PlayerCountOverlay extends Overlay
{
private static int[] CLAN_WARS_REGIONS = {9520, 13135, 13134, 13133, 13131, 13130, 13387, 13386};
private static final int[] CLAN_WARS_REGIONS = {9520, 13135, 13134, 13133, 13131, 13130, 13387, 13386};
private final PvpToolsPlugin pvpToolsPlugin;
private final Client client;

View File

@@ -25,7 +25,7 @@ import net.runelite.client.ui.overlay.OverlayUtil;
@Singleton
public class PvpToolsOverlay extends Overlay
{
private PvpToolsPlugin pvpToolsPlugin;
private final PvpToolsPlugin pvpToolsPlugin;
@Inject
private PvpToolsOverlay(final PvpToolsPlugin pvpToolsPlugin)

View File

@@ -34,18 +34,18 @@ class PvpToolsPanel extends PluginPanel
private final JLabel loggedLabel = new JLabel();
private final JRichTextPane emailLabel = new JRichTextPane();
JLabel numCC = new JLabel();
JLabel numOther = new JLabel();
JLabel numMageJLabel = new JLabel(" ");
JLabel numRangeJLabel = new JLabel(" ");
JLabel numMeleeJLabel = new JLabel(" ");
JLabel totalRiskLabel = new JLabel(" ");
JLabel riskProtectingItem = new JLabel(" ");
JLabel biggestItemLabel = new JLabel("Protected Item: ");
JButton missingPlayers = new JButton("Show missing CC members");
JButton currentPlayers = new JButton("Show current CC members");
private JLabel numBrews = new JLabel();
private JPanel missingPlayersPanel = new JPanel();
final JLabel numCC = new JLabel();
final JLabel numOther = new JLabel();
final JLabel numMageJLabel = new JLabel(" ");
final JLabel numRangeJLabel = new JLabel(" ");
final JLabel numMeleeJLabel = new JLabel(" ");
final JLabel totalRiskLabel = new JLabel(" ");
final JLabel riskProtectingItem = new JLabel(" ");
final JLabel biggestItemLabel = new JLabel("Protected Item: ");
final JButton missingPlayers = new JButton("Show missing CC members");
final JButton currentPlayers = new JButton("Show current CC members");
private final JLabel numBrews = new JLabel();
private final JPanel missingPlayersPanel = new JPanel();
public static String htmlLabel(String key, String value)

View File

@@ -97,7 +97,7 @@ public class PvpToolsPlugin extends Plugin
@Inject
private ItemManager itemManager;
private PvpToolsPlugin uhPvpToolsPlugin = this;
private final PvpToolsPlugin uhPvpToolsPlugin = this;
/**
* ActionListener for the missing cc members and refresh buttons