Fix some issues found by qodana (#2083)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2024-11-19 17:04:19 +02:00
committed by GitHub
parent 9c8c82fd8b
commit a3468b2ba9
47 changed files with 124 additions and 98 deletions

View File

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

View File

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

View File

@@ -82,7 +82,7 @@ public class DmfController {
public void unregisterThing() {
log.debug(LOG_PREFIX + "Removing Controller...", getTenantId(), getControllerId());
dmfSender.removeThing(getTenantId(), getControllerId());
log.debug(LOG_PREFIX + "Done. Create thing sent.", getTenantId(), getControllerId());
log.debug(LOG_PREFIX + "Done. Remove thing sent.", getTenantId(), getControllerId());
}
public void stop() {