Remove some redundant brackets (#16104)

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2023-12-24 09:20:09 +01:00 committed by GitHub
parent 09cedf00e3
commit 891ea04a3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ public final class EcobeeUtils {
* Set the state to the passed value. If value is null, set the state to UNDEF
*/
public static State undefOrOnOff(@Nullable Boolean value) {
return value == null ? UnDefType.UNDEF : OnOffType.from((value));
return value == null ? UnDefType.UNDEF : OnOffType.from(value);
}
public static State undefOrString(@Nullable String value) {

View File

@ -727,7 +727,7 @@ public class LivisiBridgeHandler extends BaseBridgeHandler
(capabilityId) -> client.setVariableActuatorState(capabilityId, state));
// PSS / PSSO / ISS2 / BT-PSS
} else if (DEVICE_PSS.equals(deviceType) || DEVICE_PSSO.equals(deviceType) || DEVICE_ISS2.equals(deviceType)
|| DEVICE_BT_PSS.equals((deviceType))) {
|| DEVICE_BT_PSS.equals(deviceType)) {
executeCommand(deviceId, CapabilityDTO.TYPE_SWITCHACTUATOR,
(capabilityId) -> client.setSwitchActuatorState(capabilityId, state));
}

View File

@ -997,7 +997,7 @@ public class MaxCubeBridgeHandler extends BaseBridgeHandler {
private boolean socketConnect() throws UnknownHostException, IOException {
socket = new Socket(ipAddress, port);
socket.setSoTimeout((NETWORK_TIMEOUT));
socket.setSoTimeout(NETWORK_TIMEOUT);
logger.debug("Open new connection... to {} port {}", ipAddress, port);
reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), StandardCharsets.UTF_8));
writer = new OutputStreamWriter(socket.getOutputStream(), StandardCharsets.UTF_8);