Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kgoderis authored and teichsta committed Aug 29, 2014
1 parent 99f711a commit 6eb37e0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,16 +170,16 @@ private void parseBindingConfig(SonosBindingConfig config,Item item,
*/
private Command createCommandFromString(Item item, String commandAsString) throws BindingConfigParseException {

List<Class<? extends Command>> acceptedType = new ArrayList<Class<? extends Command>>();
List<Class<? extends Command>> acceptedTypes = new ArrayList<Class<? extends Command>>();

if(item!=null) {
acceptedType = item.getAcceptedCommandTypes();
acceptedTypes = item.getAcceptedCommandTypes();
}
else {
acceptedType.add(StringType.class);
acceptedTypes.add(StringType.class);
}

Command command = TypeParser.parseCommand(acceptedType, commandAsString);
Command command = TypeParser.parseCommand(acceptedTypes, commandAsString);

if (command == null) {
throw new BindingConfigParseException("couldn't create Command from '" + commandAsString + "' ");
Expand Down

0 comments on commit 6eb37e0

Please sign in to comment.