diff --git a/developers/bindings/index.md b/developers/bindings/index.md index 557493dc78..003b1f21fb 100644 --- a/developers/bindings/index.md +++ b/developers/bindings/index.md @@ -596,7 +596,7 @@ public class MyThingHandler extends BaseThingHandler { ... @Override public Collection> getServices() { - return Collections.singleton(MQTTActions.class); + return List.of(MQTTActions.class); } } ``` @@ -981,7 +981,6 @@ Binding additional services to a handler can be achieved by implementing the ser It should extend the `AbstractThingHandlerDiscoveryService` (which implements `ThingHandlerService`and `DiscoveryService`) just like a normal service. Since a new service is created for each thing, it has to be a `PROTOTYPE` component: - ```java @Component(scope = ServiceScope.PROTOTYPE, service = YourBindingDiscoveryService.class) public class extends AbstractThingHandlerDiscoveryService {