From 400a61db12dbb9c23d3ba6ec528c0edd2855875f Mon Sep 17 00:00:00 2001 From: Christoph Weitkamp Date: Sat, 4 May 2019 14:48:47 +0200 Subject: [PATCH] Update thing-xml.md reduce code example to one liner (#961) Signed-off-by: Christoph Weitkamp --- developers/bindings/thing-xml.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(); } } ```