ui: Final fields

This commit is contained in:
sdburns1998
2019-07-07 22:03:22 +02:00
parent a24f87e738
commit 0cfb6f8d99
3 changed files with 6 additions and 6 deletions

View File

@@ -52,13 +52,13 @@ import org.pushingpixels.substance.internal.SubstanceSynapse;
@Singleton @Singleton
public class RuneLiteSplashScreen public class RuneLiteSplashScreen
{ {
private RuneLiteProperties runeLiteProperties = new RuneLiteProperties(); private final RuneLiteProperties runeLiteProperties = new RuneLiteProperties();
public JFrame frame; public JFrame frame;
public JPanel panel = new JPanel(); public final JPanel panel = new JPanel();
private JLabel messageLabel; private JLabel messageLabel;
private JLabel subMessageLabel; private JLabel subMessageLabel;
private JProgressBar progressBar = new JProgressBar(); private final JProgressBar progressBar = new JProgressBar();
/** /**
* This is not done in the constructor in order to avoid processing in case the user chooses to not load * This is not done in the constructor in order to avoid processing in case the user chooses to not load

View File

@@ -46,7 +46,7 @@ public class ColorPanel extends JPanel
private final int size; private final int size;
private BufferedImage image; private final BufferedImage image;
private Point targetPosition; private Point targetPosition;
private int selectedY; private int selectedY;
private boolean forceRedraw; private boolean forceRedraw;

View File

@@ -47,8 +47,8 @@ public class ColorValuePanel extends JPanel
{ {
private static final int DEFAULT_VALUE = ColorUtil.MAX_RGB_VALUE; private static final int DEFAULT_VALUE = ColorUtil.MAX_RGB_VALUE;
private ColorValueSlider slider = new ColorValueSlider(); private final ColorValueSlider slider = new ColorValueSlider();
private JTextField input = new JTextField(); private final JTextField input = new JTextField();
private Consumer<Integer> onValueChanged; private Consumer<Integer> onValueChanged;