skillcalculator: Final fields

This commit is contained in:
sdburns1998
2019-07-07 18:46:07 +02:00
parent d14e20017b
commit 774f1d9f0d
2 changed files with 10 additions and 10 deletions

View File

@@ -77,17 +77,17 @@ public class BankedCalculator extends JPanel
private Skill currentSkill; private Skill currentSkill;
private double totalBankedXp = 0.0f; private double totalBankedXp = 0.0f;
private JLabel totalLabel = new JLabel(); private final JLabel totalLabel = new JLabel();
private JPanel detailConfigContainer; private final JPanel detailConfigContainer;
private JPanel detailContainer; private final JPanel detailContainer;
// Banked Experience magic // Banked Experience magic
private Map<Integer, Integer> bankMap = new HashMap<>(); private Map<Integer, Integer> bankMap = new HashMap<>();
private Map<String, Boolean> categoryMap = new HashMap<>(); // Check if CriticalItem Category is enabled private final Map<String, Boolean> categoryMap = new HashMap<>(); // Check if CriticalItem Category is enabled
private Map<CriticalItem, CriticalItemPanel> panelMap = new HashMap<>(); private final Map<CriticalItem, CriticalItemPanel> panelMap = new HashMap<>();
private Map<CriticalItem, Integer> criticalMap = new HashMap<>(); // Quantity of CriticalItem inside bankMap private final Map<CriticalItem, Integer> criticalMap = new HashMap<>(); // Quantity of CriticalItem inside bankMap
private Map<CriticalItem, Activity> activityMap = new HashMap<>(); // Selected Activity used for calculating xp private final Map<CriticalItem, Activity> activityMap = new HashMap<>(); // Selected Activity used for calculating xp
private Map<CriticalItem, Integer> linkedMap = new HashMap<>(); // ItemID of item that links to the CriticalItem private final Map<CriticalItem, Integer> linkedMap = new HashMap<>(); // ItemID of item that links to the CriticalItem
BankedCalculator( BankedCalculator(
final SkillCalculatorPanel parent, final SkillCalculatorPanel parent,

View File

@@ -65,10 +65,10 @@ class SkillCalculatorPanel extends PluginPanel
private final MaterialTabGroup skillGroup; private final MaterialTabGroup skillGroup;
private final MaterialTabGroup tabGroup; private final MaterialTabGroup tabGroup;
private String currentTab; private String currentTab;
private List<String> tabs = new ArrayList<>(); private final List<String> tabs = new ArrayList<>();
@Getter @Getter
private Map<Integer, Integer> bankMap = new HashMap<>(); private Map<Integer, Integer> bankMap = new HashMap<>();
private GridBagConstraints c; private final GridBagConstraints c;
SkillCalculatorPanel(final SkillIconManager iconManager, final Client client, final SkillCalculatorConfig config, final SpriteManager spriteManager, final ItemManager itemManager) SkillCalculatorPanel(final SkillIconManager iconManager, final Client client, final SkillCalculatorConfig config, final SpriteManager spriteManager, final ItemManager itemManager)
{ {