Skip to content

Commit

Permalink
Remove some redundant brackets (openhab#16104)
Browse files Browse the repository at this point in the history
Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Dec 24, 2023
1 parent 09cedf0 commit 891ea04
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public static boolean isBridgeOnline(@Nullable Bridge bridge) {
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public void commandSwitchDevice(final String deviceId, final boolean state) {
(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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ private void sendNtpUpdate(Map<String, Object> configurationParameters) {

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);
Expand Down

0 comments on commit 891ea04

Please sign in to comment.