Make fields final. Remove protected-modifier in final class
This commit is contained in:
@@ -143,5 +143,5 @@ public final class Log
|
||||
protected final FieldPosition _fpos = new FieldPosition(SimpleDateFormat.DATE_FIELD);
|
||||
}
|
||||
|
||||
protected static final Level[] LEVELS = {Level.FINE, Level.INFO, Level.WARNING, Level.SEVERE};
|
||||
private static final Level[] LEVELS = {Level.FINE, Level.INFO, Level.WARNING, Level.SEVERE};
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ public final class LaunchUtil
|
||||
/**
|
||||
* Checks whether a Java Virtual Machine can be located in the supplied path.
|
||||
*/
|
||||
protected static String checkJVMPath (String vmhome, boolean windebug)
|
||||
private static String checkJVMPath(String vmhome, boolean windebug)
|
||||
{
|
||||
String vmbase = vmhome + File.separator + "bin" + File.separator;
|
||||
String vmpath = vmbase + "java";
|
||||
@@ -222,11 +222,11 @@ public final class LaunchUtil
|
||||
}
|
||||
|
||||
/** Flag indicating that we're on Windows; initialized when this class is first loaded. */
|
||||
protected static boolean _isWindows;
|
||||
private static boolean _isWindows;
|
||||
/** Flag indicating that we're on MacOS; initialized when this class is first loaded. */
|
||||
protected static boolean _isMacOS;
|
||||
private static boolean _isMacOS;
|
||||
/** Flag indicating that we're on Linux; initialized when this class is first loaded. */
|
||||
protected static boolean _isLinux;
|
||||
private static boolean _isLinux;
|
||||
|
||||
static {
|
||||
try {
|
||||
|
||||
@@ -140,5 +140,5 @@ public final class MessageUtil {
|
||||
|
||||
/** Text prefixed by this character will be considered tainted when doing recursive
|
||||
* translations and won't be translated. */
|
||||
protected static final String TAINT_CHAR = "~";
|
||||
private static final String TAINT_CHAR = "~";
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public class ResourceCacheTest
|
||||
assertTrue(lastAccessedFile.lastModified() > lastAccessed);
|
||||
}
|
||||
|
||||
@Rule public TemporaryFolder _folder = new TemporaryFolder();
|
||||
@Rule public final TemporaryFolder _folder = new TemporaryFolder();
|
||||
|
||||
private File _fileToCache;
|
||||
private ResourceCache _cache;
|
||||
|
||||
Reference in New Issue
Block a user