Resolves CR comments
This commit is contained in:
parent
10988526a2
commit
44a654a2e3
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user