Skip to content

Commit

Permalink
[enocean] Fix Java 21 build
Browse files Browse the repository at this point in the history
Signed-off-by: Holger Friedrich <[email protected]>
  • Loading branch information
holgerfriedrich committed Apr 5, 2024
1 parent d700b91 commit ad254d8
Showing 1 changed file with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

import java.lang.reflect.InvocationTargetException;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
import java.util.function.Function;

Expand Down Expand Up @@ -53,24 +52,10 @@
@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();
Expand Down

0 comments on commit ad254d8

Please sign in to comment.