aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alex Blewitt <alex.blewitt@gmail.com> 2021-03-24 07:25:32 +0000
committerGravatar Aleksey Shipilev <shade@openjdk.org> 2021-03-24 07:25:32 +0000
commit45e1bab87ccebd498d4f927a008dd89a47dd177b (patch)
tree728a3287f7722f30c546fce0a591a15bc758ba3e
parentcb776edfd71427cd74c7f5675033e62db11e39a8 (diff)
downloadjdk-45e1bab87ccebd498d4f927a008dd89a47dd177b.tar.gz
jdk-45e1bab87ccebd498d4f927a008dd89a47dd177b.zip
8264091: Use the blessed modifier order in java.logging
Reviewed-by: lancea, iris, shade
-rw-r--r--src/java.logging/share/classes/java/util/logging/ErrorManager.java12
-rw-r--r--src/java.logging/share/classes/java/util/logging/LogManager.java6
-rw-r--r--src/java.logging/share/classes/java/util/logging/MemoryHandler.java2
3 files changed, 10 insertions, 10 deletions
diff --git a/src/java.logging/share/classes/java/util/logging/ErrorManager.java b/src/java.logging/share/classes/java/util/logging/ErrorManager.java
index f03d6f3f6b8..db654672ea3 100644
--- a/src/java.logging/share/classes/java/util/logging/ErrorManager.java
+++ b/src/java.logging/share/classes/java/util/logging/ErrorManager.java
@@ -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.
diff --git a/src/java.logging/share/classes/java/util/logging/LogManager.java b/src/java.logging/share/classes/java/util/logging/LogManager.java
index 070d76b4805..0e19da8aebb 100644
--- a/src/java.logging/share/classes/java/util/logging/LogManager.java
+++ b/src/java.logging/share/classes/java/util/logging/LogManager.java
@@ -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";
/**
diff --git a/src/java.logging/share/classes/java/util/logging/MemoryHandler.java b/src/java.logging/share/classes/java/util/logging/MemoryHandler.java
index f09ac741ca4..fbf421391cf 100644
--- a/src/java.logging/share/classes/java/util/logging/MemoryHandler.java
+++ b/src/java.logging/share/classes/java/util/logging/MemoryHandler.java
@@ -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;