mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
[enocean] Fix Java 21 build (#16615)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
f59f57f1c8
commit
99813d9c20
@ -17,7 +17,6 @@ import static org.openhab.binding.enocean.internal.messages.ESP3Packet.*;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
@ -53,24 +52,10 @@ import org.openhab.core.util.HexUtils;
|
||||
@NonNullByDefault
|
||||
public class GenericEEP extends EEP {
|
||||
|
||||
final List<Class<? extends State>> supportedStates = Collections.unmodifiableList(new LinkedList<>() {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
{
|
||||
add(DateTimeType.class);
|
||||
add(DecimalType.class);
|
||||
add(HSBType.class);
|
||||
add(OnOffType.class);
|
||||
add(OpenClosedType.class);
|
||||
add(PercentType.class);
|
||||
add(PlayPauseType.class);
|
||||
add(PointType.class);
|
||||
add(RewindFastforwardType.class);
|
||||
add(StringListType.class);
|
||||
add(StringType.class);
|
||||
add(UpDownType.class);
|
||||
}
|
||||
});
|
||||
final List<Class<? extends State>> supportedStates = Collections
|
||||
.unmodifiableList(List.of(DateTimeType.class, DecimalType.class, HSBType.class, OnOffType.class,
|
||||
OpenClosedType.class, PercentType.class, PlayPauseType.class, PointType.class,
|
||||
RewindFastforwardType.class, StringListType.class, StringType.class, UpDownType.class));
|
||||
|
||||
public GenericEEP() {
|
||||
super();
|
||||
|
Loading…
Reference in New Issue
Block a user