Remove protected-modifier in final class
This commit is contained in:
@@ -187,7 +187,7 @@ public final class StringUtil {
|
|||||||
/**
|
/**
|
||||||
* Helper function for the various {@code join} methods.
|
* Helper function for the various {@code join} methods.
|
||||||
*/
|
*/
|
||||||
protected static String join (Object[] values, String separator, boolean escape)
|
private static String join(Object[] values, String separator, boolean escape)
|
||||||
{
|
{
|
||||||
StringBuilder buf = new StringBuilder();
|
StringBuilder buf = new StringBuilder();
|
||||||
int vlength = values.length;
|
int vlength = values.length;
|
||||||
@@ -202,5 +202,5 @@ public final class StringUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Used by {@link #hexlate}. */
|
/** Used by {@link #hexlate}. */
|
||||||
protected static final String XLATE = "0123456789abcdef";
|
private static final String XLATE = "0123456789abcdef";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,6 +289,6 @@ public final class ProxyUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static final String PROXY_REGISTRY =
|
private static final String PROXY_REGISTRY =
|
||||||
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
|
"Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ public final class RotatingBackgrounds
|
|||||||
return images.length;
|
return images.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void makeEmpty ()
|
private void makeEmpty()
|
||||||
{
|
{
|
||||||
percentages = new int[] {};
|
percentages = new int[] {};
|
||||||
minDisplayTime = new int[] {};
|
minDisplayTime = new int[] {};
|
||||||
@@ -114,19 +114,19 @@ public final class RotatingBackgrounds
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Time at which the currently displayed image was first displayed in millis. */
|
/** Time at which the currently displayed image was first displayed in millis. */
|
||||||
protected long currentDisplayStart;
|
private long currentDisplayStart;
|
||||||
|
|
||||||
/** The index of the currently displayed image or -1 if we haven't displayed any. */
|
/** The index of the currently displayed image or -1 if we haven't displayed any. */
|
||||||
protected int current = -1;
|
private int current = -1;
|
||||||
|
|
||||||
protected Image[] images;
|
private Image[] images;
|
||||||
|
|
||||||
/** The image to display if getdown has failed due to an error. */
|
/** The image to display if getdown has failed due to an error. */
|
||||||
protected Image errorImage;
|
private Image errorImage;
|
||||||
|
|
||||||
/** Percentage at which each image should be displayed. */
|
/** Percentage at which each image should be displayed. */
|
||||||
protected int[] percentages;
|
private int[] percentages;
|
||||||
|
|
||||||
/** Time to show each image in seconds. */
|
/** Time to show each image in seconds. */
|
||||||
protected int[] minDisplayTime;
|
private int[] minDisplayTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ public final class StatusPanel extends JComponent
|
|||||||
/**
|
/**
|
||||||
* Update the status label.
|
* Update the status label.
|
||||||
*/
|
*/
|
||||||
protected void updateStatusLabel ()
|
private void updateStatusLabel()
|
||||||
{
|
{
|
||||||
String status = _status;
|
String status = _status;
|
||||||
if (!_displayError) {
|
if (!_displayError) {
|
||||||
@@ -285,7 +285,7 @@ public final class StatusPanel extends JComponent
|
|||||||
/**
|
/**
|
||||||
* Get the y coordinate of a label in the status area.
|
* Get the y coordinate of a label in the status area.
|
||||||
*/
|
*/
|
||||||
protected int getStatusY (Label label)
|
private int getStatusY(Label label)
|
||||||
{
|
{
|
||||||
// if the status region is higher than the progress region, we
|
// if the status region is higher than the progress region, we
|
||||||
// want to align the label with the bottom of its region
|
// want to align the label with the bottom of its region
|
||||||
@@ -299,7 +299,7 @@ public final class StatusPanel extends JComponent
|
|||||||
/**
|
/**
|
||||||
* Create a label, taking care of adding the shadow if needed.
|
* Create a label, taking care of adding the shadow if needed.
|
||||||
*/
|
*/
|
||||||
protected Label createLabel (String text, Color color)
|
private Label createLabel(String text, Color color)
|
||||||
{
|
{
|
||||||
Label label = new Label(text, color, FONT);
|
Label label = new Label(text, color, FONT);
|
||||||
if (_ifc.textShadow != 0) {
|
if (_ifc.textShadow != 0) {
|
||||||
@@ -310,7 +310,7 @@ public final class StatusPanel extends JComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Used by {@link #setStatus}. */
|
/** Used by {@link #setStatus}. */
|
||||||
protected String xlate (String compoundKey)
|
private String xlate(String compoundKey)
|
||||||
{
|
{
|
||||||
// to be more efficient about creating unnecessary objects, we
|
// to be more efficient about creating unnecessary objects, we
|
||||||
// do some checking before splitting
|
// do some checking before splitting
|
||||||
@@ -337,7 +337,7 @@ public final class StatusPanel extends JComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Used by {@link #setStatus}. */
|
/** Used by {@link #setStatus}. */
|
||||||
protected String get (String key, String[] args)
|
private String get(String key, String[] args)
|
||||||
{
|
{
|
||||||
String msg = get(key);
|
String msg = get(key);
|
||||||
if (msg != null) return MessageFormat.format(MessageUtil.escape(msg), (Object[])args);
|
if (msg != null) return MessageFormat.format(MessageUtil.escape(msg), (Object[])args);
|
||||||
@@ -345,7 +345,7 @@ public final class StatusPanel extends JComponent
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Used by {@link #setStatus}, and {@link #setProgress}. */
|
/** Used by {@link #setStatus}, and {@link #setProgress}. */
|
||||||
protected String get (String key)
|
private String get(String key)
|
||||||
{
|
{
|
||||||
// if we have no _msgs that means we're probably recovering from a
|
// if we have no _msgs that means we're probably recovering from a
|
||||||
// failure to load the translation messages in the first place, so
|
// failure to load the translation messages in the first place, so
|
||||||
@@ -368,26 +368,26 @@ public final class StatusPanel extends JComponent
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Image _barimg;
|
private Image _barimg;
|
||||||
protected RotatingBackgrounds _bg;
|
private RotatingBackgrounds _bg;
|
||||||
protected Dimension _psize;
|
private Dimension _psize;
|
||||||
|
|
||||||
protected final ResourceBundle _msgs;
|
private final ResourceBundle _msgs;
|
||||||
|
|
||||||
protected int _progress = -1;
|
private int _progress = -1;
|
||||||
protected String _status;
|
private String _status;
|
||||||
protected int _statusDots = 1;
|
private int _statusDots = 1;
|
||||||
protected boolean _displayError;
|
private boolean _displayError;
|
||||||
protected Label _label, _newlab;
|
private Label _label, _newlab;
|
||||||
protected Label _plabel, _newplab;
|
private Label _plabel, _newplab;
|
||||||
protected Label _rlabel, _newrlab;
|
private Label _rlabel, _newrlab;
|
||||||
|
|
||||||
protected UpdateInterface _ifc;
|
private UpdateInterface _ifc;
|
||||||
protected final Timer _timer;
|
private final Timer _timer;
|
||||||
|
|
||||||
protected final long[] _remain = new long[4];
|
private final long[] _remain = new long[4];
|
||||||
protected int _ridx;
|
private int _ridx;
|
||||||
protected Throttle _rthrottle = new Throttle(1, 1000L);
|
private Throttle _rthrottle = new Throttle(1, 1000L);
|
||||||
|
|
||||||
protected static final Font FONT = new Font("SansSerif", Font.BOLD, 12);
|
static final Font FONT = new Font("SansSerif", Font.BOLD, 12);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user