Update thing-xml.md reduce code example to one liner (#961)
Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>pull/962/head
parent
bde22bd5be
commit
400a61db12
|
@ -382,9 +382,7 @@ public class ExampleDynamicCommandDescriptionProvider implements DynamicCommandD
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
CommandDescriptionBuilder builder = CommandDescriptionBuilder.create();
|
return CommandDescriptionBuilder.create().withCommandOptions(options).build();
|
||||||
options.forEach(co -> builder.withCommandOption(co));
|
|
||||||
return builder.build();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue