Make fields final. Remove redundant modifier on final-class

This commit is contained in:
Anosh D. Ullenius
2022-06-17 20:20:05 +02:00
parent 29437aa993
commit a4e38057ae
16 changed files with 48 additions and 45 deletions
@@ -80,7 +80,7 @@ public final class AbortPanel extends JFrame
}
/** Used to look up localized messages. */
protected String get (String key)
private String get(String key)
{
// if this string is tainted, we don't translate it, instead we
// simply remove the taint character and return it to the caller
@@ -95,6 +95,6 @@ public final class AbortPanel extends JFrame
}
}
protected Getdown _getdown;
protected ResourceBundle _msgs;
private final Getdown _getdown;
private final ResourceBundle _msgs;
}
@@ -1113,13 +1113,13 @@ public abstract class Getdown
}
/** Used to pass progress on to our user interface. */
protected ProgressObserver _progobs = new ProgressObserver() {
protected final ProgressObserver _progobs = new ProgressObserver() {
public void progress (int percent) {
setStatusAsync(null, stepToGlobalPercent(percent), -1L, false);
}
};
protected Application _app;
protected final Application _app;
protected Application.UpdateInterface _ifc = new Application.UpdateInterface(Config.EMPTY);
protected ResourceBundle _msgs;
@@ -1134,7 +1134,7 @@ public abstract class Getdown
protected boolean _silent;
protected boolean _launchInSilent;
protected boolean _noUpdate;
protected long _startup;
protected final long _startup;
protected Set<Resource> _toInstallResources;
protected boolean _readyToInstall;
@@ -197,9 +197,9 @@ public final class ProxyPanel extends JPanel implements ActionListener
protected final ResourceBundle _msgs;
protected final boolean _updateAuth;
protected JTextField _host;
protected JTextField _port;
protected JCheckBox _useAuth;
protected JTextField _username;
protected JPasswordField _password;
protected final JTextField _host;
protected final JTextField _port;
protected final JCheckBox _useAuth;
protected final JTextField _username;
protected final JPasswordField _password;
}