Resolves CR comments

上级 10988526
......@@ -46,7 +46,7 @@ public class App {
* @param args command line args
*/
public static void main(String[] args) {
final Logger logger = LoggerFactory.getLogger(App.class);
final var logger = LoggerFactory.getLogger(App.class);
var guard = new Guard();
var thief = new Thief();
......@@ -59,7 +59,7 @@ public class App {
//noinspection ConstantConditions
if (thief instanceof Permission) {
thief.doNothing();
thief.steal();
} else {
thief.doNothing();
}
......
......@@ -28,7 +28,6 @@ import org.slf4j.LoggerFactory;
* Class defining Guard.
*/
public class Guard implements Permission {
private static final Logger LOGGER = LoggerFactory.getLogger(Guard.class);
protected void enter() {
......
......@@ -28,10 +28,9 @@ import org.slf4j.LoggerFactory;
* Class defining Thief.
*/
public class Thief {
private static final Logger LOGGER = LoggerFactory.getLogger(Thief.class);
protected static void steal() {
protected void steal() {
LOGGER.info("Steal valuable items");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册