Skip to content

Commit 44a654a

Browse files
Resolves CR comments
1 parent 1098852 commit 44a654a

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

marker/src/main/java/App.java

+2-2
Original file line numberDiff line numberDiff 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
}

marker/src/main/java/Guard.java

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
* Class defining Guard.
2929
*/
3030
public class Guard implements Permission {
31-
3231
private static final Logger LOGGER = LoggerFactory.getLogger(Guard.class);
3332

3433
protected void enter() {

marker/src/main/java/Thief.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@
2828
* Class defining Thief.
2929
*/
3030
public 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

0 commit comments

Comments
 (0)