File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public class App {
4646 * @param args command line args
4747 */
4848 public static void main (String [] args ) {
49- final Logger logger = LoggerFactory .getLogger (App .class );
49+ final var logger = LoggerFactory .getLogger (App .class );
5050 var guard = new Guard ();
5151 var thief = new Thief ();
5252
@@ -59,7 +59,7 @@ public static void main(String[] args) {
5959
6060 //noinspection ConstantConditions
6161 if (thief instanceof Permission ) {
62- thief .doNothing ();
62+ thief .steal ();
6363 } else {
6464 thief .doNothing ();
6565 }
Original file line number Diff line number Diff line change 2828 * Class defining Guard.
2929 */
3030public class Guard implements Permission {
31-
3231 private static final Logger LOGGER = LoggerFactory .getLogger (Guard .class );
3332
3433 protected void enter () {
Original file line number Diff line number Diff line change 2828 * Class defining Thief.
2929 */
3030public class Thief {
31-
3231 private static final Logger LOGGER = LoggerFactory .getLogger (Thief .class );
3332
34- protected static void steal () {
33+ protected void steal () {
3534 LOGGER .info ("Steal valuable items" );
3635 }
3736
You can’t perform that action at this time.
0 commit comments