mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
Apply spotless
Signed-off-by: clinique <gael@lhopital.org>
This commit is contained in:
parent
4b32f8e605
commit
8e19f2c19b
@ -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!");
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user