Skip to content

Commit

Permalink
make CONFIG_PARAMS aa final field
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Jul 9, 2021
1 parent e4fd949 commit 49f2424
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public class SimpleLogger extends MarkerIgnoringBase {
protected static final int LOG_LEVEL_OFF = LOG_LEVEL_ERROR + 10;

private static boolean INITIALIZED = false;
static private SimpleLoggerConfiguration CONFIG_PARAMS = null;
static final private SimpleLoggerConfiguration CONFIG_PARAMS = new SimpleLoggerConfiguration();

static void lazyInit() {
if (INITIALIZED) {
Expand All @@ -170,7 +170,6 @@ static void lazyInit() {
// external software might be invoking this method directly. Do not rename
// or change its semantics.
static void init() {
CONFIG_PARAMS = new SimpleLoggerConfiguration();
CONFIG_PARAMS.init();
}

Expand Down

0 comments on commit 49f2424

Please sign in to comment.