X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-rest-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Frestconf%2Fimpl%2FEmptyNodeWrapper.java;h=5a310e8af276811980617dd416b9b7cbe15c86d8;hb=ddaf5bf1e47671e5e9ddf65e9456b7c582fb381e;hp=f93a0aea70fa311a7dd0b6f8ba520d8153f03b89;hpb=04067d34aeb80d3b11264210773c1fc98a47665d;p=controller.git diff --git a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java index f93a0aea70..5a310e8af2 100644 --- a/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java +++ b/opendaylight/md-sal/sal-rest-connector/src/main/java/org/opendaylight/controller/sal/restconf/impl/EmptyNodeWrapper.java @@ -8,15 +8,17 @@ package org.opendaylight.controller.sal.restconf.impl; import com.google.common.base.Preconditions; - import java.net.URI; import java.util.Collections; - import org.opendaylight.yangtools.yang.common.QName; import org.opendaylight.yangtools.yang.data.api.CompositeNode; import org.opendaylight.yangtools.yang.data.api.Node; import org.opendaylight.yangtools.yang.data.impl.NodeFactory; +/** + * @deprecated class will be removed in Lithium release + */ +@Deprecated public final class EmptyNodeWrapper implements NodeWrapper>, Node { private Node unwrapped; @@ -85,8 +87,9 @@ public final class EmptyNodeWrapper implements NodeWrapper>, Node Preconditions.checkNotNull(namespace); name = new QName(namespace, localName); } - if(composite) { - unwrapped = NodeFactory.createImmutableCompositeNode(name, null, Collections.>emptyList(),null); + if (composite) { + unwrapped = NodeFactory.createImmutableCompositeNode(name, null, Collections.> emptyList(), + null); } else { unwrapped = NodeFactory.createImmutableSimpleNode(name, null, null); }