Update thing-xml.md reduce code example to one liner (#961)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
pull/962/head
Christoph Weitkamp 2019-05-04 14:48:47 +02:00 committed by Jerome Luckenbach
parent bde22bd5be
commit 400a61db12
1 changed files with 1 additions and 3 deletions

View File

@ -382,9 +382,7 @@ public class ExampleDynamicCommandDescriptionProvider implements DynamicCommandD
return null;
}
CommandDescriptionBuilder builder = CommandDescriptionBuilder.create();
options.forEach(co -> builder.withCommandOption(co));
return builder.build();
return CommandDescriptionBuilder.create().withCommandOptions(options).build();
}
}
```