Resolves CR comments

This commit is contained in:
Anurag Agarwal 2020-08-03 15:45:29 +00:00
parent 10988526a2
commit 44a654a2e3
No known key found for this signature in database
GPG Key ID: CF5E14552DA23F13
3 changed files with 3 additions and 5 deletions

View File

@ -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();
}

View File

@ -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() {

View File

@ -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");
}