X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMRpcResult.java;h=b55f355f622e4f93ae7140c053ab44d1d6ae70ad;hb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;hp=58936888705d02e9f618d3b5f13a1bcfcbf5bafc;hpb=3927509ec3ecfa32a51b725d2b7155d425f5b877;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcResult.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcResult.java index 5893688870..b55f355f62 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcResult.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMRpcResult.java @@ -7,30 +7,14 @@ */ package org.opendaylight.controller.md.sal.dom.api; -import java.util.Collection; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; -import org.opendaylight.yangtools.yang.common.RpcError; -import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode; +import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; /** * Interface defining a result of an RPC call. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMRpcResult} instead. */ -public interface DOMRpcResult { - /** - * Returns a set of errors and warnings which occurred during processing - * the call. - * - * @return a Collection of {@link RpcError}, guaranteed to be non-null. In case - * no errors are reported, an empty collection is returned. - */ - @Nonnull Collection getErrors(); - - /** - * Returns the value result of the call or null if no result is available. - * - * @return Invocation result, null if the operation has not produced a result. This might - * be the case if the operation does not produce a result, or if it failed. - */ - @Nullable NormalizedNode getResult(); +@Deprecated(forRemoval = true) +@SuppressFBWarnings(value = "NM_SAME_SIMPLE_NAME_AS_INTERFACE", justification = "Migration") +public interface DOMRpcResult extends org.opendaylight.mdsal.dom.api.DOMRpcResult { }