Fix build and improve exception handling (#10726)
The PercentType and QuantityType can also throw an IllegalArgumentException. Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -46,8 +46,8 @@ import org.slf4j.LoggerFactory;
|
||||
@NonNullByDefault
|
||||
public class CommandTag {
|
||||
|
||||
private static final List<Class<? extends Command>> otherCommandTypes = Arrays.asList(DecimalType.class,
|
||||
QuantityType.class, OnOffType.class, OpenClosedType.class, UpDownType.class, HSBType.class,
|
||||
private static final List<Class<? extends Command>> otherCommandTypes = Arrays.asList(HSBType.class,
|
||||
DecimalType.class, QuantityType.class, OnOffType.class, OpenClosedType.class, UpDownType.class,
|
||||
PlayPauseType.class, RewindFastforwardType.class, StringType.class);
|
||||
|
||||
private static final List<Class<? extends Command>> percentCommandType = Arrays.asList(PercentType.class);
|
||||
|
||||
Reference in New Issue
Block a user