Apply spotless

Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
clinique 2025-01-04 09:44:18 +01:00
parent e32eda1c08
commit 111312abc7
2 changed files with 2 additions and 5 deletions

View File

@ -58,8 +58,7 @@ public class Ipx800Actions implements ThingActions {
public void resetCounter( public void resetCounter(
@ActionInput(name = "counter", label = "Counter", required = true, description = "Id of the counter", type = "java.lang.Integer") Integer counter) { @ActionInput(name = "counter", label = "Counter", required = true, description = "Id of the counter", type = "java.lang.Integer") Integer counter) {
logger.debug("IPX800 action 'resetCounter' called"); logger.debug("IPX800 action 'resetCounter' called");
Ipx800v3Handler theHandler = this.handler; if (handler instanceof Ipx800v3Handler theHandler) {
if (theHandler != null) {
theHandler.resetCounter(counter); theHandler.resetCounter(counter);
} else { } else {
logger.warn("Method call resetCounter failed because IPX800 action service ThingHandler is null!"); logger.warn("Method call resetCounter failed because IPX800 action service ThingHandler is null!");
@ -70,8 +69,7 @@ public class Ipx800Actions implements ThingActions {
public void reset( public void reset(
@ActionInput(name = "placeholder", label = "Placeholder", required = false, description = "This parameter is not used", type = "java.lang.Integer") @Nullable Integer placeholder) { @ActionInput(name = "placeholder", label = "Placeholder", required = false, description = "This parameter is not used", type = "java.lang.Integer") @Nullable Integer placeholder) {
logger.debug("IPX800 action 'reset' called"); logger.debug("IPX800 action 'reset' called");
Ipx800v3Handler theHandler = this.handler; if (handler instanceof Ipx800v3Handler theHandler) {
if (theHandler != null) {
theHandler.reset(); theHandler.reset();
} else { } else {
logger.warn("Method call reset failed because IPX800 action service ThingHandler is null!"); logger.warn("Method call reset failed because IPX800 action service ThingHandler is null!");

View File

@ -146,7 +146,6 @@ public class Ipx800DeviceConnector extends Thread {
logger.warn("Exception closing socket: {}", e.getMessage()); logger.warn("Exception closing socket: {}", e.getMessage());
} }
} }
} }
public StatusFile readStatusFile() throws SAXException, IOException { public StatusFile readStatusFile() throws SAXException, IOException {