Notification adapters do not need AutoCloseable, remove it.
Change-Id: I06332661ab7278ef66d37e0d0920bf52f5776d99
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
import org.opendaylight.mdsal.dom.api.DOMService;
import org.opendaylight.yangtools.yang.binding.Notification;
import org.opendaylight.mdsal.dom.api.DOMService;
import org.opendaylight.yangtools.yang.binding.Notification;
-public class BindingDOMNotificationPublishServiceAdapter implements NotificationPublishService, AutoCloseable {
+public class BindingDOMNotificationPublishServiceAdapter implements NotificationPublishService {
static final Factory<NotificationPublishService> BUILDER_FACTORY = Builder::new;
static final Factory<NotificationPublishService> BUILDER_FACTORY = Builder::new;
return LazySerializedDOMNotification.create(codecRegistry, notification);
}
return LazySerializedDOMNotification.create(codecRegistry, notification);
}
- @Override
- public void close() throws Exception {
-
- }
-
protected static class Builder extends BindingDOMAdapterBuilder<NotificationPublishService> {
@Override
protected static class Builder extends BindingDOMAdapterBuilder<NotificationPublishService> {
@Override
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.NotificationListener;
import org.opendaylight.yangtools.concepts.ListenerRegistration;
import org.opendaylight.yangtools.yang.binding.NotificationListener;
-public class BindingDOMNotificationServiceAdapter implements NotificationService, AutoCloseable {
+public class BindingDOMNotificationServiceAdapter implements NotificationService {
public static final Factory<NotificationService> BUILDER_FACTORY = Builder::new;
public static final Factory<NotificationService> BUILDER_FACTORY = Builder::new;
return new ListenerRegistrationImpl<>(listener, domRegistration);
}
return new ListenerRegistrationImpl<>(listener, domRegistration);
}
- @Override
- public void close() throws Exception {
-
- }
-
private static class ListenerRegistrationImpl<T extends NotificationListener>
extends AbstractListenerRegistration<T> {
private final ListenerRegistration<?> listenerRegistration;
private static class ListenerRegistrationImpl<T extends NotificationListener>
extends AbstractListenerRegistration<T> {
private final ListenerRegistration<?> listenerRegistration;