Skip to content

Commit 49f2424

Browse files
committed
make CONFIG_PARAMS aa final field
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent e4fd949 commit 49f2424

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

slf4j-simple/src/main/java/org/slf4j/impl/SimpleLogger.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public class SimpleLogger extends MarkerIgnoringBase {
157157
protected static final int LOG_LEVEL_OFF = LOG_LEVEL_ERROR + 10;
158158

159159
private static boolean INITIALIZED = false;
160-
static private SimpleLoggerConfiguration CONFIG_PARAMS = null;
160+
static final private SimpleLoggerConfiguration CONFIG_PARAMS = new SimpleLoggerConfiguration();
161161

162162
static void lazyInit() {
163163
if (INITIALIZED) {
@@ -170,7 +170,6 @@ static void lazyInit() {
170170
// external software might be invoking this method directly. Do not rename
171171
// or change its semantics.
172172
static void init() {
173-
CONFIG_PARAMS = new SimpleLoggerConfiguration();
174173
CONFIG_PARAMS.init();
175174
}
176175

0 commit comments

Comments
 (0)