mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 22:58:36 +00:00
* refactoring #1012: Format specifiers should be used instead of string concatenation. * refactoring #1012: Format specifiers should be used instead of string concatenation. * refactoring #1012: Remove isInfoEnabled check
This commit is contained in:
@@ -62,7 +62,7 @@ public class App {
|
||||
final var logger = LoggerFactory.getLogger(App.class);
|
||||
|
||||
var name = unit.getName();
|
||||
Function<String, Runnable> func = (e) -> () -> logger.info(name + " without " + e);
|
||||
Function<String, Runnable> func = e -> () -> logger.info("{} without {}", name, e);
|
||||
|
||||
var extension = "SoldierExtension";
|
||||
Optional.ofNullable(unit.getUnitExtension(extension))
|
||||
|
||||
Reference in New Issue
Block a user