X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fdom%2Fbroker%2Fosgi%2FAbstractBrokerServiceProxy.java;h=8d33ff7997dab4b2a09d813c9200e8b95f7dc762;hb=7325ba9a87ead9d9070b1ba7018ca20d60da987c;hp=853e3e391f591a8b3d6c5aad72d5d62da0093471;hpb=2fffd8cdb3ed75f478b900c677bb4d97e5e91c9c;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java index 853e3e391f..8d33ff7997 100644 --- a/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java +++ b/opendaylight/md-sal/sal-dom-broker/src/main/java/org/opendaylight/controller/sal/dom/broker/osgi/AbstractBrokerServiceProxy.java @@ -14,6 +14,8 @@ import java.util.Collections; import java.util.HashSet; import java.util.Set; +import javax.annotation.Nullable; + import org.opendaylight.controller.sal.core.api.BrokerService; import org.opendaylight.yangtools.concepts.Registration; import org.osgi.framework.ServiceReference; @@ -23,9 +25,9 @@ public abstract class AbstractBrokerServiceProxy implem private T delegate; private final ServiceReference reference; - public AbstractBrokerServiceProxy(final ServiceReference ref, final T delegate) { + public AbstractBrokerServiceProxy(final @Nullable ServiceReference ref, final T delegate) { this.delegate = checkNotNull(delegate, "Delegate should not be null."); - this.reference = checkNotNull(ref, "Reference should not be null."); + this.reference = ref; } protected final T getDelegate() {