Skip to content
Permalink
Browse files
8264091: Use the blessed modifier order in java.logging
Reviewed-by: lancea, iris, shade
  • Loading branch information
alblue authored and shipilev committed Mar 24, 2021
1 parent cb776ed commit 45e1bab87ccebd498d4f927a008dd89a47dd177b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
@@ -52,27 +52,27 @@ public ErrorManager() {}
* GENERIC_FAILURE is used for failure that don't fit
* into one of the other categories.
*/
public final static int GENERIC_FAILURE = 0;
public static final int GENERIC_FAILURE = 0;
/**
* WRITE_FAILURE is used when a write to an output stream fails.
*/
public final static int WRITE_FAILURE = 1;
public static final int WRITE_FAILURE = 1;
/**
* FLUSH_FAILURE is used when a flush to an output stream fails.
*/
public final static int FLUSH_FAILURE = 2;
public static final int FLUSH_FAILURE = 2;
/**
* CLOSE_FAILURE is used when a close of an output stream fails.
*/
public final static int CLOSE_FAILURE = 3;
public static final int CLOSE_FAILURE = 3;
/**
* OPEN_FAILURE is used when an open of an output stream fails.
*/
public final static int OPEN_FAILURE = 4;
public static final int OPEN_FAILURE = 4;
/**
* FORMAT_FAILURE is used when formatting fails for any reason.
*/
public final static int FORMAT_FAILURE = 5;
public static final int FORMAT_FAILURE = 5;

/**
* The error method is called when a Handler failure occurs.
@@ -164,7 +164,7 @@ public class LogManager {
// open for props.getProperties() to be called before the construcor
// of Hashtable is actually completed).
private volatile Properties props = new Properties();
private final static Level defaultLevel = Level.INFO;
private static final Level defaultLevel = Level.INFO;

// LoggerContext for system loggers and user loggers
private final LoggerContext systemContext = new SystemLoggerContext();
@@ -1153,7 +1153,7 @@ void setParentRef(WeakReference<Logger> parentRef) {
// - minimum: 0.02 ms
// - maximum: 10.9 ms
//
private final static int MAX_ITERATIONS = 400;
private static final int MAX_ITERATIONS = 400;
final void drainLoggerRefQueueBounded() {
for (int i = 0; i < MAX_ITERATIONS; i++) {
if (loggerRefQueue == null) {
@@ -2550,7 +2550,7 @@ private void setLevelsOnExistingLoggers() {
*
* @since 1.5
*/
public final static String LOGGING_MXBEAN_NAME
public static final String LOGGING_MXBEAN_NAME
= "java.util.logging:type=Logging";

/**
@@ -87,7 +87,7 @@
*/

public class MemoryHandler extends Handler {
private final static int DEFAULT_SIZE = 1000;
private static final int DEFAULT_SIZE = 1000;
private volatile Level pushLevel;
private int size;
private Handler target;

0 comments on commit 45e1bab

Please sign in to comment.