mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8264091: Use the blessed modifier order in java.logging
Reviewed-by: lancea, iris, shade
This commit is contained in:
parent
cb776edfd7
commit
45e1bab87c
3 changed files with 10 additions and 10 deletions
|
@ -52,27 +52,27 @@ public class 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 @@ public class LogManager {
|
|||
// - 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 @@ public class LogManager {
|
|||
*
|
||||
* @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 @@ package java.util.logging;
|
|||
*/
|
||||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue