Code cleanup

This commit is contained in:
Ilkka Seppälä
2020-07-30 17:25:32 +03:00
parent 5381387026
commit 981985531d
243 changed files with 1157 additions and 1166 deletions

View File

@@ -48,37 +48,37 @@ public class FileSelectorJFrame extends JFrame implements FileSelectorView, Acti
/**
* The "OK" button for loading the file.
*/
private JButton ok;
private final JButton ok;
/**
* The cancel button.
*/
private JButton cancel;
private final JButton cancel;
/**
* The information label.
*/
private JLabel info;
private final JLabel info;
/**
* The contents label.
*/
private JLabel contents;
private final JLabel contents;
/**
* The text field for giving the name of the file that we want to open.
*/
private JTextField input;
private final JTextField input;
/**
* A text area that will keep the contents of the file opened.
*/
private JTextArea area;
private final JTextArea area;
/**
* The panel that will hold our widgets.
*/
private JPanel panel;
private final JPanel panel;
/**
* The Presenter component that the frame will interact with.

View File

@@ -41,7 +41,7 @@ public class FileSelectorPresenter implements Serializable {
/**
* The View component that the presenter interacts with.
*/
private FileSelectorView view;
private final FileSelectorView view;
/**
* The Model component that the presenter interacts with.