Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jooby/src/main/java/io/jooby/Jooby.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Jooby implements Router, Registry {
static final String APP_NAME = "___app_name__";

private static final String JOOBY_RUN_HOOK = "___jooby_run_hook__";
private static final Logger log = LoggerFactory.getLogger(Jooby.class);
private final Logger log = LoggerFactory.getLogger(Jooby.class);

private final transient AtomicBoolean started = new AtomicBoolean(true);

Expand Down
21 changes: 21 additions & 0 deletions jooby/src/test/java/io/jooby/Issue3963.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby;

import static org.junit.jupiter.api.Assertions.assertFalse;

import java.lang.reflect.Modifier;

import org.junit.jupiter.api.Test;

public class Issue3963 {

@Test
void logVariableCannotBeStatic() throws NoSuchFieldException {
var field = Jooby.class.getDeclaredField("log");
assertFalse(Modifier.isStatic(field.getModifiers()));
}
}
Loading