[io] Use Java 17 features (#15485)
* instanceof matching and multiline strings * use Map/Set/List.of instead of Collections Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -61,7 +61,7 @@ public class HomekitTelevisionSpeakerImpl extends AbstractHomekitAccessoryImpl {
|
||||
var volumeCharacteristic = getCharacteristic(VolumeCharacteristic.class);
|
||||
var volumeSelectorCharacteristic = getCharacteristic(VolumeSelectorCharacteristic.class);
|
||||
|
||||
if (!volumeControlTypeCharacteristic.isPresent()) {
|
||||
if (volumeControlTypeCharacteristic.isEmpty()) {
|
||||
VolumeControlTypeEnum type;
|
||||
if (volumeCharacteristic.isPresent()) {
|
||||
type = VolumeControlTypeEnum.ABSOLUTE;
|
||||
|
||||
Reference in New Issue
Block a user