diff --git a/developers/bindings/thing-xml.md b/developers/bindings/thing-xml.md index 04f31c5e3..bac38cb69 100644 --- a/developers/bindings/thing-xml.md +++ b/developers/bindings/thing-xml.md @@ -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(); } } ```