Source:
<code>public void handleCommand(ChannelUID channelUID, Command command) { switch (channelUID.getId()) { case CHANNEL_SWITCH: if (command instanceof OnOffType) { if (((OnOffType) command).equals(OnOffType.ON)) { Integer channelCounter = 0; for (Channel channel : channels) { if (resumeAfter) { channel.suspendAction(); } else { channel.clearAction(); } for (ValueSet value : values) { channel.addChannelAction(new FadeAction(value.getFadeTime(), value.getValue(channelCounter), value.getHoldTime())); } if (resumeAfter) { channel.addChannelAction(new ResumeAction()); } if (isLinked(channelUID.getId())) { channel.addListener(channelUID, this, ListenerType.ACTION); } channelCounter++; } } else { for (Channel channel : channels) { if (resumeAfter && channel.isSuspended()) { channel.setChannelAction(new ResumeAction()); } else { channel.clearAction(); } } } } else if (command instanceof RefreshType) { updateState(channelUID, isRunning); } else { logger.warn("command not supported in channel {}:switch", command.getClass(), this.thing.getUID()); } break; case CHANNEL_CONTROL: if (command instanceof StringType) { Vector<ValueSet> oldValues = new Vector<ValueSet>(values); if (parseChaserConfig(((StringType) command).toString())) { logger.debug("updated chase config in {}", this.thing.getUID()); } else { <START> values = oldValues; <END> logger.warn("could not update chase config in {}, malformed", this.thing.getUID()); } } else { logger.warn("command not supported in channel {}:control", command.getClass(), this.thing.getUID()); } break; default: logger.warn("Channel not supported in thing {}", channelUID.getId(), this.thing.getUID()); } }</code><technical_language>This is error state, warning, right</technical_language>

Target:
public void handleCommand(ChannelUID channelUID, Command command) { switch (channelUID.getId()) { case CHANNEL_SWITCH: if (command instanceof OnOffType) { if (((OnOffType) command).equals(OnOffType.ON)) { Integer channelCounter = 0; for (Channel channel : channels) { if (resumeAfter) { channel.suspendAction(); } else { channel.clearAction(); } for (ValueSet value : values) { channel.addChannelAction(new FadeAction(value.getFadeTime(), value.getValue(channelCounter), value.getHoldTime())); } if (resumeAfter) { channel.addChannelAction(new ResumeAction()); } if (isLinked(channelUID.getId())) { channel.addListener(channelUID, this, ListenerType.ACTION); } channelCounter++; } } else { for (Channel channel : channels) { if (resumeAfter && channel.isSuspended()) { channel.setChannelAction(new ResumeAction()); } else { channel.clearAction(); } } } } else if (command instanceof RefreshType) { updateState(channelUID, isRunning); } else { logger.debug("command not supported in channel {}:switch", command.getClass(), this.thing.getUID()); } break; case CHANNEL_CONTROL: if (command instanceof StringType) { Vector<ValueSet> oldValues = new Vector<ValueSet>(values); if (parseChaserConfig(((StringType) command).toString())) { logger.debug("updated chase config in {}", this.thing.getUID()); } else { values = oldValues; logger.debug("could not update chase config in {}, malformed", this.thing.getUID()); } } else { logger.debug("command not supported in channel {}:control", command.getClass(), this.thing.getUID()); } break; default: logger.debug("Channel not supported in thing {}", channelUID.getId(), this.thing.getUID()); } }