mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-03 15:11:56 +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:
1 parent
a82966f202
commit
301317533e
9 files changed
+19
-19
No files matched your search
@@ -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