mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 06:58:41 +00:00
Resolves CR comments
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user