Fix some issues found by qodana (#2083)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -74,7 +74,7 @@ public class DmfApp {
|
||||
public void stopOne(@ShellOption("--id") final String controllerId) {
|
||||
dmfTenant.getController(controllerId).ifPresentOrElse(
|
||||
DmfController::stop,
|
||||
() -> log.error("Controller with id " + controllerId + " not found!"));
|
||||
() -> log.error("Controller with id {} not found!", controllerId));
|
||||
}
|
||||
|
||||
@ShellMethod(key = "start")
|
||||
|
||||
@@ -108,7 +108,7 @@ public class MultiDeviceApp {
|
||||
public void stopOne(@ShellOption("--id") final String controllerId) {
|
||||
ddiTenant.getController(controllerId).ifPresentOrElse(
|
||||
DdiController::stop,
|
||||
() -> log.error("Controller with id " + controllerId + " not found!"));
|
||||
() -> log.error("Controller with id {} not found!", controllerId));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user