Raise minimum JDK version to 17 (#13276)

Signed-off-by: Jan N. Klug <github@klug.nrw>
This commit is contained in:
J-N-K
2022-12-19 20:39:42 +01:00
committed by GitHub
parent 4d6d6443ef
commit 9f3b8e1c04
27 changed files with 17 additions and 1022 deletions

View File

@@ -109,9 +109,9 @@ public class EnOceanDeviceDiscoveryService extends AbstractDiscoveryService impl
String enoceanId = HexUtils.bytesToHex(eep.getSenderId());
bridgeHandler.getThing().getThings().stream()
.filter(t -> t.getConfiguration().getProperties().getOrDefault(PARAMETER_ENOCEANID, EMPTYENOCEANID)
.toString().equals(enoceanId))
bridgeHandler
.getThing().getThings().stream().filter(t -> t.getConfiguration().getProperties()
.getOrDefault(PARAMETER_ENOCEANID, EMPTYENOCEANID).toString().equals(enoceanId))
.findFirst().ifPresentOrElse(t -> {
// If repeated learn is not allowed => send teach out
// otherwise do nothing