Skip to content

Commit 45e1bab

Browse files
alblueshipilev
authored andcommitted
8264091: Use the blessed modifier order in java.logging
Reviewed-by: lancea, iris, shade
1 parent cb776ed commit 45e1bab

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/java.logging/share/classes/java/util/logging/ErrorManager.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,27 +52,27 @@ public ErrorManager() {}
5252
* GENERIC_FAILURE is used for failure that don't fit
5353
* into one of the other categories.
5454
*/
55-
public final static int GENERIC_FAILURE = 0;
55+
public static final int GENERIC_FAILURE = 0;
5656
/**
5757
* WRITE_FAILURE is used when a write to an output stream fails.
5858
*/
59-
public final static int WRITE_FAILURE = 1;
59+
public static final int WRITE_FAILURE = 1;
6060
/**
6161
* FLUSH_FAILURE is used when a flush to an output stream fails.
6262
*/
63-
public final static int FLUSH_FAILURE = 2;
63+
public static final int FLUSH_FAILURE = 2;
6464
/**
6565
* CLOSE_FAILURE is used when a close of an output stream fails.
6666
*/
67-
public final static int CLOSE_FAILURE = 3;
67+
public static final int CLOSE_FAILURE = 3;
6868
/**
6969
* OPEN_FAILURE is used when an open of an output stream fails.
7070
*/
71-
public final static int OPEN_FAILURE = 4;
71+
public static final int OPEN_FAILURE = 4;
7272
/**
7373
* FORMAT_FAILURE is used when formatting fails for any reason.
7474
*/
75-
public final static int FORMAT_FAILURE = 5;
75+
public static final int FORMAT_FAILURE = 5;
7676

7777
/**
7878
* The error method is called when a Handler failure occurs.

src/java.logging/share/classes/java/util/logging/LogManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public class LogManager {
164164
// open for props.getProperties() to be called before the construcor
165165
// of Hashtable is actually completed).
166166
private volatile Properties props = new Properties();
167-
private final static Level defaultLevel = Level.INFO;
167+
private static final Level defaultLevel = Level.INFO;
168168

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

25562556
/**

src/java.logging/share/classes/java/util/logging/MemoryHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
*/
8888

8989
public class MemoryHandler extends Handler {
90-
private final static int DEFAULT_SIZE = 1000;
90+
private static final int DEFAULT_SIZE = 1000;
9191
private volatile Level pushLevel;
9292
private int size;
9393
private Handler target;

0 commit comments

Comments
 (0)