File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class App {
46
46
* @param args command line args
47
47
*/
48
48
public static void main (String [] args ) {
49
- final Logger logger = LoggerFactory .getLogger (App .class );
49
+ final var logger = LoggerFactory .getLogger (App .class );
50
50
var guard = new Guard ();
51
51
var thief = new Thief ();
52
52
@@ -59,7 +59,7 @@ public static void main(String[] args) {
59
59
60
60
//noinspection ConstantConditions
61
61
if (thief instanceof Permission ) {
62
- thief .doNothing ();
62
+ thief .steal ();
63
63
} else {
64
64
thief .doNothing ();
65
65
}
Original file line number Diff line number Diff line change 28
28
* Class defining Guard.
29
29
*/
30
30
public class Guard implements Permission {
31
-
32
31
private static final Logger LOGGER = LoggerFactory .getLogger (Guard .class );
33
32
34
33
protected void enter () {
Original file line number Diff line number Diff line change 28
28
* Class defining Thief.
29
29
*/
30
30
public class Thief {
31
-
32
31
private static final Logger LOGGER = LoggerFactory .getLogger (Thief .class );
33
32
34
- protected static void steal () {
33
+ protected void steal () {
35
34
LOGGER .info ("Steal valuable items" );
36
35
}
37
36
You can’t perform that action at this time.
0 commit comments